Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

ngrx let

content_copy
<ng-container *ngrxLet="observableNumber$; let n; let e = $error, let c = $complete">
  <app-number [number]="n"  *ngIf="!e && !c">
  </app-number>
  <ng-container *ngIf="e">
  There is an error: {{e}}
  </ng-container>
  <ng-container *ngIf="c">
  Observable completed: {{c}}
  </ng-container>
</ng-container>
Source by ngrx.io #
 
PREVIOUS NEXT
Tagged: #ngrx
ADD COMMENT
Topic
Name
4+1 =