How to write ngSwitch inside a template component angular code example Example: *ngSwitch ... ... ... ...