*ngIf else if in template

后端 未结 8 799
甜味超标
甜味超标 2020-12-07 11:33

How would I have multiple cases in an *ngIf statement? I\'m used to Vue or Angular 1 with having an if, else if, and else

8条回答
  •  心在旅途
    2020-12-07 12:19

    
    
        
    
    
    
    

    Angular is already using ng-template under the hood in many of the structural directives that we use all the time: ngIf, ngFor and ngSwitch.

    > What is ng-template in Angular

    https://www.angularjswiki.com/angular/what-is-ng-template-in-angular/

提交回复
热议问题