Answers for "Angular n"next" directive"

13

ng if else

<div *ngIf="condition; else elseBlock">Content to render when condition is true.</div>
<ng-template #elseBlock>Content to render when condition is false.</ng-template>
Posted by: Guest on March-03-2020
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

Code answers related to "Angular n"next" directive"

Browse Popular Code Answers by Language