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

Angular : Get value of parameter in parent route

With the help of this article, the problem was solved. For accessing the params in parent route, we need to use activeRoute.parent.params instead of activeRoute.params this.activatedRoute.parent.params.subscribe( (params) => { console.log(params.accountid); }); Also from this stackoverflow question , a solution to make all params (including parent route params) available to child routes was found. This is … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)