I followed the instruction below to replace the layout of RoutesComponent.
https://docs.abp.io/en/abp/latest/UI/Angular/Component-Replacement#how-to-replace-a-layout
I got the error when adding li element. Anyone knows how to fix it? Thanks
<li
#navbarRootDropdown
[abpVisibility]="routeContainer"
class="nav-item dropdown"
display="static"
(click)="
navbarRootDropdown.expand
? (navbarRootDropdown.expand = false)
: (navbarRootDropdown.expand = true)
"
>错误:src/app/ bind /甘油三酯:10:5-错误NG8002:无法绑定到'abpVisibility‘,因为它不是'li’的已知属性。10 abpVisibility="routeContainer“
S:5:16 5 templateUrl:‘./甘油三酯’,~ RoutesComponent模板中发生错误。
Error: src/app/routes/routes.component.html:10:22 - error TS2339: Property 'routeContainer' does not exist on type 'RoutesComponent'.
10 [abpVisibility]="routeContainer"
~~~~~~~~~~~~~~
src/app/routes/routes.component.ts:5:16
5 templateUrl: './routes.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component RoutesComponent.发布于 2022-08-10 20:45:22
我有和你一样的错误我修改了
[abpVisibility]="routeContainer"至
[attr.abpVisibility]="routeContainer"https://stackoverflow.com/questions/71567620
复制相似问题