Angular

how to use NgSwitch case in angular

Pinterest LinkedIn Tumblr

<div [ngSwitch]=”color”>
<div *ngSwitchCase = “‘red'”> Red</div>
<div *ngSwitchCase = “‘Blue'”> Blue</div>
<div *ngSwitchCase = “‘Black'”> Black</div>
<div *ngSwitchDefault>This is Default </div>
</div>

Write A Comment

Faster PHP Cloud Hosting