Angular error: no provider for ActivatedRoute
For being able to provide ActivatedRoute into your angular elements, you need to import the result of calling RouterModule.forRoot into your root module (AppModule). This is because the module returned by RouterModule.forRoot includes the provider for instances of ActivatedRoute, among others. So basically you need to add the following to your imports in the root … Read more