angular ngif
<label *ngIf="1==1" > show Label when condition is true </label>
angular ngif
<label *ngIf="1==1" > show Label when condition is true </label>
ngIf else
content_copy
<div *ngIf="condition; then thenBlock else elseBlock"></div>
<ng-template #thenBlock>Content to render when condition is true.</ng-template>
<ng-template #elseBlock>Content to render when condition is false.</ng-template>
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
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us