I need to call a component in src from node_modules but using the selector won't work.
I tried adding the component to be accessed in sharedModule and have it imported at app.module.ts.
I need to call a component in src from node_modules but using the selector won't work.
I tried adding the component to be accessed in sharedModule and have it imported at app.module.ts.
in the app.module.ts you import Modules and components. i.e.:
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import {MyComponent} from './my-component.ts';
@NgModule({
declarations: [
MyComponent
],
imports: [
BrowserModule
],
providers: [],
bootstrap: []
})
But I think, this is something you already know.