Skip to content

Instantly share code, notes, and snippets.

@ashish173
Last active July 7, 2017 16:24
Show Gist options
  • Save ashish173/49b1555296ce36931969ebdd25cd9f9b to your computer and use it in GitHub Desktop.
Save ashish173/49b1555296ce36931969ebdd25cd9f9b to your computer and use it in GitHub Desktop.
NgIf Else local data reference
<div *ngIf="$userObservable | async; else loading; let user">
Hello {{user.last}}, {{user.first}}!
</div>
<ng-template #loading>Fetching data...</ng-template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment