0
我有一个动态的模板,我收到一条错误:角2:ngIf模板解析错误
Template parse errors: Unexpected closing tag "button". It may happen when the tag has already been closed by another tag.
这里是我的模板:
<ion-col>
<button *ngIf=!editMode" class="warning-gradient" (click)="toggleEdit()"><i class="fa fa-edit"></i>Update</button>
<button *ngIf="editMode" class="warning-success" (click)="submitForm()"><i class="fa fa-check"></i>Update</button>
</ion-col>
...我应该在做不同的事情?
'* ngIf =! “编辑模式”'你错过的第一个按钮打开'“' – jmw5598
@ jmw5598为
*ngIf
属性开幕"
你为什么不把它作为答案?似乎是解决方案的OP – sebaferreras哦,上帝......我盯着那么久 –