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

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

Ansible warning on jinja2 braces on when -