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

Ansible warning on jinja2 braces on when -

Parsing a protocol message from Go by Java -

node.js - Node js - Trying to send POST request, but it is not loading javascript content -