Angular 4.0 : Template parse errors: Unexpected closing tag
没找到标签闭合错误啊,问题出在哪里呢
TaskHomeComponent.html 片断:
<div class="task-lists">
<app-task-list
class="list-container"
app-droppable
[dropTags]="['task-item', 'task-list']"
[dragEnterClass]="'drag-enter'"
[app-draggable]="true"
[dragTag]="'task-list'"
[draggedClass]"'drag-start'"
[dragData]="list"
(dropped)="handleMove($event, list)"
*ngFor="let list of lists">
<app-task-header
[header]="list.name"
(newTask)="launchNewTaskDialog()"
(moveAll)="launchCopyTaskDialog()"
(delList)="launchConfirmDialog()"
(onEditList)="launchEditListDialog()">
</app-task-header>
<app-task-item
*ngFor="let task of list.tasks"
[item]="task"
(taskClick)="launchUpdateTaskDialog(task)">
</app-task-item>
</app-task-list>
</div>
<button class="fab-button" md-fab type="button" (click)="launchNewListDialog()">
<md-icon>add</md-icon>
</button>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
[draggedClass]="'drag-start'" 少了"=",写的时候需要仔细一些,一般出现这个问题就是标点符号啥的出故障