Skip to content

Instantly share code, notes, and snippets.

@vvscode
Created February 8, 2019 10:39
Show Gist options
  • Select an option

  • Save vvscode/6cf2e112ab59a80999867376fce228a5 to your computer and use it in GitHub Desktop.

Select an option

Save vvscode/6cf2e112ab59a80999867376fce228a5 to your computer and use it in GitHub Desktop.
handle-api-call-state-nicely
<loading-container [loadable]="news$ | async">
<p *ngFor="let item of (news$ | async).entities">{{item}}</p>
</loading-container>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment