到了Angular 4新增加了else的功能,需要搭配ng-template使用,直接看範本:. <p *ngIf="expression; else noServer"> NG-IF server created.</p>.
確定! 回上一頁