Answers for "angular ngif template"

1

angular ngif

<label *ngIf="1==1" > show Label when condition is true </label>
Posted by: Guest on September-22-2021
1

ngif

<div *ngIf="condition; else elseBlock">
         
<button class="xx" *ngIf="flag" (click)="doFunct()">Next</button>
   
--While (t/f boolean variable called "flag") is true
  This button will be visible + click button executes function
  Once this "flag" becomes false this button disapears
Posted by: Guest on June-20-2020

Browse Popular Code Answers by Language