Share Share on Facebook Share on Twitter Pinterest Email <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> 0 Siddharth Shukla Website Related Posts Angular 15 RxJS Observable with Httpclient Example January 23, 2023 Angular 15 Pagination with NGX Pagination Example January 23, 2023 Angular 15 HttpClient & Http Services Tutorial January 23, 2023 Angular 15 Google Social Login Tutorial Example January 23, 2023