angular 中*ngIf 和*ngSwitch判断语句

<div style="text-align:center"> <h1> Welcome to {{ title }}! </h1> <p *ngIf="true">show</p> <p *ngIf="isShow">hide</p> <p template="ngIf true">这是 ngIF 判断是否显示</p> <ul [ngSwitch]="statu
相关文章
相关标签/搜索