Answers for "how to use ngif in user defined component"

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

Code answers related to "how to use ngif in user defined component"

Browse Popular Code Answers by Language