angular - Referencing SharedModule in AppModule -
that might silly question, thing i'm making harder is, have shared , core modules. have example spinnercomponent (spinner loading icon). means, every component in app should show spinner while loading, fine. spinnercomponent in hour sharedmodule. thing is, have component in app.component need show spinner. should reference sharedmodule in appmodule well? practice?
yes should inject sharedmodule
appmodule
since spinnercomponent
used.
this suggested way well.
@ngmodule({ imports: [ sharedmodule }) ]
Comments
Post a Comment