Questions tagged [angular-routerlink]

220 questions
5
votes
1 answer

How to pass multiple route parameters in Ionic-Angular?

I am able to get a single param through route like page1/id1 in Ionic 5. If I want to get multiple parameters for a module, how do I do that?
Leena
  • 703
  • 1
  • 12
  • 21
5
votes
4 answers

routerLinkActive route for child and parent

I am trying to apply or highlight navigation routes for my menu bar with below code, what i could get is, i could able to highlight the submenu, but could not able to highlight the parent menu bar.
4
votes
3 answers

How can I prevent navigation when a button is clicked within a table row that has a routerLink?

I have an angular material table that has the following structure.
My Column
gh0st
  • 1,653
  • 3
  • 27
  • 59
4
votes
3 answers

Angular: configure default QueryParamsHandling

I've built an angular 9 app, and added localization with @ngx-translate. I've configured my app so that it takes the lang query parameter and changes the locale accordingly. @Component({ selector: 'app-root', templateUrl:…
Pieterjan
  • 2,738
  • 4
  • 28
  • 55
4
votes
2 answers

reload component when change parts routing in angular

I use angular 6. I have ListComponent which show list of products. my routing { path: ('list/:category/:subcategory'), component: ListComponent } a tag {{ item.title…
3
votes
0 answers

Angular routerLink not working with Electron

I'm facing a issues about using routerLink with Angular with Electron. Page Example When this link is clicked, I have a blank page with this error in DevTools : file:///< path >/dist/example failed…
Mahefa
  • 418
  • 3
  • 12
3
votes
2 answers

Angular 9 routes giving blank pages with no errors

I've just upgraded to Angular 9 and created some child routes using lazy loading. Before these changes, my project and my routes worked perfectly but after these two changes, just my HomeComponent route (path: "") works correctly, but if I try to…
3
votes
2 answers

Angular - Issue with routerLink and state

From an html page I want to route to another page using routerLink and state. With tag there's no issues, during ngOnInit in landing page, I can retrieve state as expected. Using tag home page is navigate as well but state results…
Xilo
  • 77
  • 1
  • 1
  • 8
3
votes
1 answer

Keep Angular Material table state after Component redirection

I have a TableComponent with an Angular Material table that contains some links to other components. When I am on the second page of the table (Image above) and I click on the link, routerLink redirects to DetailComponent. Once I am redirected, if…
Iñigo
  • 1,877
  • 7
  • 25
  • 55
3
votes
3 answers

Angular - Get current activated route and re-navigate to the same page with different route param

I am trying to get current route and navigate to the same route after changing the itemCode in the search textbox in the header. When I initially came to the page the parent route is "iauth/iauthedit/1706" then user navigates to the child route…
VR1256
  • 1,266
  • 4
  • 28
  • 56
2
votes
1 answer

routerLinkActive not working on my sideNav bar

I'm creating a sideNav bar and the active button won't highlight. I assume it's because the active route is "/app/carrier-alias" and the routerLink on the button element is "/carrier-alias". Does anybody know any work arounds?
2
votes
1 answer

Angular doesn't concatenate value in routerLink

The problem is simple, I have this component, that gets the last searched items I saved in the sessionSotrage, which is an array of ListItem objects: export class SearchlistComponent { results =…
2
votes
1 answer

My app's RouterModule isn't lazy loading posts

I am learning Angular and as a practice project, I am developing a front-end interface (with angular 13) for a Wordpress API served from a Docker container. The angular app has to display the list of all posts obtained from the API and by making use…
2
votes
1 answer

How to know if angular router has registered route

I'm migrating a set of Anguar microsites info module federation based MFE architecture. Not all apps will be migrated at once, so I have this issue to solve: So far, all cross-microsite links were just regular a tags with href and full page reload…
dragonfly
  • 17,407
  • 30
  • 110
  • 219
1
2
3
14 15