Ionic2 角度2:ngIf模板解析错误
我有一个动态模板,我得到一个错误,该错误声明:Ionic2 角度2:ngIf模板解析错误,ionic2,angular2-template,angular-ng-if,Ionic2,Angular2 Template,Angular Ng If,我有一个动态模板,我得到一个错误,该错误声明: 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()
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=“!editMode”
您错过了第一个窗口的开口”
button@jmw5598你为什么不加上这个作为答案呢?似乎是解决OPOh神的办法…我盯着它看了这么久!editMode“
您缺少第一页的开头”
button@jmw5598你为什么不加上这个作为回答呢?似乎是奥波神的解决方案。。。我盯着它看了这么久
<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>