Answers for "ngif or condition angular 8"

1

angular ngif

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

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>
Posted by: Guest on April-02-2020

Browse Popular Code Answers by Language