ngIf 指令用于根据表达式的值,在指定位置渲染then 或else 模板的内容。 then 模板除非绑 ... Angular 2.x中使用template--> <ng-template [ngIf]="condition"><div>.
確定! 回上一頁