-1

I have this in my .ts file

myobj: Observable<MyObj[]>;

which I can loop through in my HTML file to see all myObj[] coming from my API

is it possible to turn this Observable into an Array of MyObj?

1 Answers1

-1

You can use *ngFor directive with asyncPipe in your HTML template.

Your case:

<ng-container *ngFor="let obj of myobj | async">
  {{obj}}
</ng-container>
marsibarsi
  • 973
  • 7
  • 7