I am unable to get the URL nor the path from ActivatedRoute nor Router imports. It outputs a blank for path "" and '/' for URL. I remember using a working version. The only thing that captures the right route the Router.events. I am a...
I'm having an issue with routing to a route with query params I have a function like so  goToLink(link) {     this.router.navigate([`${link.split('?')[0]}`, { queryParams: this.sortParams(link)}]); }   and this function  sortParams(link)...
I'm using multiple named angular 8 router-outlet in a web app. All the routerLink seems to work as it changes the URL but components in my 2nd router-outlet are imported but not initialized nor rendered.    I made a Stackblitz available here : ht...
I'm upgrading from Angular 4.0.0 to Angular 5.2.6  i'm facing some problem to get lazy module loading working.  with angular 4.0.0 , it works fine , but now , with 5.2.6 , i getting such an error when clicking my redirecting button :  core.js...
I'm trying to test an Angular Resolver which accesses children routes param.  My guard works fine but I cannot create an unit test easily because I cannot create an ActivatedRouteSnapshot with children routes (read only property).   My resolver...
I am trying to use anchor tag with href in my Angular 7 app. When I click on the link the url changes in the browser but the page doesn't get navigated to. It works if I put target="_self" so this works   <a href="/abcd" target...
I need to pass data to a dynamically created angular module like an id or JSON my controller code is like this.   Logic Explained - The API provides the layout of the page if primary module comes first or secondary module (There are more which cannot...
So I built an Angular 5.2.0 app that I divided into 3 modules:   An admin module, to be loaded when the user navigates to any admin/** route, A prefect module, to be loaded when the user navigates to any prefect/** route, An authentication module, to...
Playing around with the stackblitz starting point and I added the following routing:      const routes : Routes = [ {path: 'hello', 'component': HelloComponent}];       @NgModule({       imports:      [          RouterModule.forRoot(r...
In my current logout call, I have something like this:   getLogoutConfirmation(){    // get confirmation in modal and perform logout    // redirect to login page  }   Issue is, when logout is performed and redirect to login is called, the canDeactiva...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.