代码之家  ›  专栏  ›  技术社区  ›  J.G.Sable

在Angular TS文件中找不到Angular输入属性

  •  0
  • J.G.Sable  · 技术社区  · 5 年前

    我的组件html中有一个错误,它指出在我的 app-search-results-list 组件:

    enter image description here

    enter image description here

    我以前从未遇到过这种错误,为了安全起见,我补充道:

    import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
    

    schemas: [
            NO_ERRORS_SCHEMA
    ],
    

    enter image description here

    应用模块TS:

    enter image description here

    功能模块(我知道我可以清理)

    enter image description here

    1 回复  |  直到 5 年前