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

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

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -