Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

angular 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>
Source by angular.io #
 
PREVIOUS NEXT
Tagged: #angular
ADD COMMENT
Topic
Name
7+8 =