I have set up my app so that I have a Recipe Book which has a list of Recipies which when I click on a Recipe it then shows the Recipe Details
This might help someone else.
I was getting this error. I have checked all my defined routes in my route file,
the path and components are defined correctly.
The reason of getting this error was that I forgot to add reference of my service in app.module.ts which was being used in one of my component to get data from RestApi.
So, always add service reference in app.module.ts in providers section, immediately after creating service.
imports: [
BrowserModule,
HttpModule,
......
],
providers: [
AuthService,
........ // Here, service reference
]