06Angular指令(多重判断)

多重判断

*ngSwitchCase  *ngSwitchDefault,有一个使用前提:通过[ngSwitch]去指定判断条件

demo04.component.ts

    

demo04.component.html

    

     

猜你喜欢

转载自www.cnblogs.com/shanlu0000/p/12202452.html