mituri

[ng] asterisk in *ngIf meaning

May 16th, 2018
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.11 KB | None | 0 0
  1. <p *ngIf="test===true">Hello</p>
  2.  
  3. Equals:
  4.  
  5. <ng-container [ngIf]="test===true">
  6. <p>Hello</p>
  7. </ng-container>
Advertisement
Add Comment
Please, Sign In to add comment