Open Closed

error NG8001: 'sub-header' is not a known element: #9721


0
rvanwoezik created

ASP.NET CORE & Angular (single solution) .NET Core 3.1 v9.0.0

Hi, tryin to add new page to main module

`<div [@routerTransition]> <div class="content d-flex flex-column flex-column-fluid"> <sub-header [title]="'Employees'">

    &lt;/sub-header&gt;

    &lt;div [class]=&quot;containerClass&quot;&gt;

    &lt;/div&gt;

&lt;/div&gt;

</div>`

In the ts file i have added: import { AppComponentBase } from '@shared/common/app-component-base';

when using npm start i get the error: error NG8001: 'sub-header' is not a known element:

What am i missing, must be something stupid, existing pages in the main module with sub-headers are working.

Thanks in advance


2 Answer(s)
  • 0
    ismcagdas created
    Support Team

    Hi,

    You need to import the AppCommonModule intpo the module which contains the page you are getting this error.

  • 0
    rvanwoezik created

    I'm getting old, Alzheimer Light. Thanks!