Open chesminsky opened 5 years ago
Hi. I m trying to implement dynamic loading using your technique. I got some problem. If my dynamic module has providers
@NgModule({ providers: [ SampleService ], //.... })
and this service is injected in component i get NullInjectorError: No provider for SampleService! if i declare it as
NullInjectorError: No provider for SampleService!
@Component({ providers: [ SampleService ], })
everything seems ok, but service get destroyed with component
I need help... How can i make shared service at module level ? PS my angular version is 5
Hi. I m trying to implement dynamic loading using your technique. I got some problem. If my dynamic module has providers
and this service is injected in component i get
NullInjectorError: No provider for SampleService!
if i declare it aseverything seems ok, but service get destroyed with component
I need help... How can i make shared service at module level ? PS my angular version is 5