I\'ve got a problem loading a class into an Angular component. I\'ve been trying to solve it for a long time; I\'ve even tried joining it all in a single file. What I have i
The error No provider for NameService is a common issue that many Angular2 beginners face.
No provider for NameService
Reason: Before using any custom service you first have to register it with NgModule by adding it to the providers list:
Solution:
@NgModule({ imports: [...], providers: [CustomServiceName] })