首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在abp框架中替换RoutesComponent布局的错误

在abp框架中替换RoutesComponent布局的错误
EN

Stack Overflow用户
提问于 2022-03-22 06:12:46
回答 1查看 125关注 0票数 0
代码语言:javascript
复制
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模板中发生错误。

代码语言:javascript
复制
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.
EN

回答 1

Stack Overflow用户

发布于 2022-08-10 20:45:22

我有和你一样的错误我修改了

代码语言:javascript
复制
[abpVisibility]="routeContainer"

代码语言:javascript
复制
[attr.abpVisibility]="routeContainer"
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71567620

复制
相关文章

相似问题

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