首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Angular 6构建问题

Angular 6构建问题
EN

Stack Overflow用户
提问于 2018-08-17 19:42:48
回答 1查看 426关注 0票数 2
代码语言:javascript
复制
    ERROR in : "let-" is only supported on ng-template elements. ("
  </thead>
  <tbody>
    <template ngFor [ngForOf]="rows" [ERROR ->]let-rowz="$implicit" let-index="i
ndex">
      <tr *ngIf="!(datePicker.onlyCurrentMonth && rowz[0].sec")
: "let-" is only supported on ng-template elements. ("
  </thead>
  <tbody>
    <template ngFor [ngForOf]="rows" let-rowz="$implicit" [ERROR ->]let-index="i
ndex">
      <tr *ngIf="!(datePicker.onlyCurrentMonth && rowz[0].secondary && rowz[6].s
`ec")

当我使用--aot构建时,我得到了这个错误,它在没有--aot的情况下在Angular 6中工作。

请帮帮我。谢谢

EN

回答 1

Stack Overflow用户

发布于 2018-08-17 19:50:25

只有ng-template元素支持let-。

请用ng-template替换template

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/51894697

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档