Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

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


User avatar
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]>

<sub-header [title]="'Employees'">

    </sub-header>

    <div [class]="containerClass">

    </div>

</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)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

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

  • User Avatar
    0
    rvanwoezik created

    I'm getting old, Alzheimer Light. Thanks!