Typscript -Funktion Rückgabeart beobachtbar
//in the service file
getResults():Observable<any[]>{
return this.httpClient.get<any>('/URL');
}
//in the ts file
$observableResults = this.thatService.service.get()
//in the template
<div *ngFor='thing of ($observableResults | async)'>
{{thing.something}}
</div>
Philan ISithembiso