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中工作。
请帮帮我。谢谢
发布于 2018-08-17 19:50:25
只有ng-template元素支持let-。
请用ng-template替换template。
https://stackoverflow.com/questions/51894697
复制相似问题