Category: Angular

how to use NgSwitch case in angular

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