1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Getting an error in Angular when creating a new component and using its selector name as an...

Discussão em 'Angular' iniciado por minahal fatima, Julho 4, 2025.

  1. I'm new to angular and have been following tutorials I've created a new angular component in angular 20 and trying to use its selector as a custom html tag in the app componenet everything is as described in tutorials but I'm getting these errors X [ERROR] NG8001: 'app-header' is not a known element:

    1. If 'app-header' is an Angular component, then verify that it is part of this module.
    2. If 'app-header' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. [plugin angular-compiler]

    Continue reading...

Compartilhe esta Página