SyntaxFix
Write A Post
Hire A Developer
Questions
Angular2 requires you to declare all the injectables in bootstrap function call. Without this your service is not an injectable object.
bootstrap(MyAppComponent,[NameService]);