![]() |
1
2
“还有其他办法吗…” 你试过这个吗: https://angular.io/guide/aot-compiler#fulltemplatetypecheck ?
奖金:另请参见编译器github上关于绑定表达式的本节: https://github.com/angular/angular/blob/master/aio/content/guide/aot-compiler.md#phase-3-binding-expression-validation
|
![]() |
2
1
这是我的评论: AoT预先编译模板,并寻找要生成的绑定。另一方面,将它放在ng容器中是一件特殊的事情,因为ng容器在被调用之前不会被解释和编译。 见本文: https://blog.angular-university.io/angular-ng-template-ng-container-ngtemplateoutlet/ 我试着搜索更多的信息,我只是回到你关于角度问题的第一个评论: https://github.com/angular/angular/issues/20287 与此相关的问题: https://github.com/angular/angular/issues/19792 . 我想你现在对此无能为力! |
![]() |
Yanis-git · 同一项目上的角度AOT和JIT 7 年前 |
![]() |
Alejandro Morán · 角度5-动态模块配置 7 年前 |
![]() |
dotnet-provoke · aot束上的角度错误处理程序包含组件 7 年前 |