Questions tagged [angular-routerlink]
220 questions
0
votes
0 answers
Lazy Load app, sidenav charges another module
In my application I use lazy load pattern. Now, the starting dashboard has a sidebar that contains buttons that, via routerlink, should call a module that loads the template into the sidenav content.
The problem is that when the template of the new…
0
votes
0 answers
Angular routerLinkActive on parent element
I am using a Syncfusion sidebar and listview in an Angular Micro-Frontend application. When I select an item in the sidebar, the app is loaded on the right side and the list item has an e-active class and I can target it to apply styles. I want a…

tangel
- 309
- 1
- 3
- 12
0
votes
1 answer
Angular define route params from root
I want to make a route path from base url:
my-domain.com/3
It was not working with path: ':id' and the page will be stuck:
export const routes: Route[] = [
{
path: '',
component: LayoutComponent,
canActivate: [IsAuthenticated],
…

Mohammad Reza Mrg
- 1,552
- 15
- 30
0
votes
0 answers
How to reload the same component from link with routerLink
I've designed a generic detailing component for entities in my backend api.
The service delivers a DTO with everything, so there's no problem with my api.
I am using angular materials for the table display (and made a custom header swap to make the…
0
votes
1 answer
Element not clickable when using routerLink directive
I have login, but it is rendered as plain text, just like if I used login.
I'm certain, that there is no mistake in my routing, since if I added a button and the…

Mirin
- 33
- 5
0
votes
1 answer
I have an anchor tag in Angular application which has [routerLink] on it, why when right-clicking, browser context menu doesn't have open in new tab?
A tag looks like this:
{{item.parent.name}}
I tried adding a click event with a function to it, and I tried…

Dekla
- 1
- 1
0
votes
0 answers
I don't see the query strings in the route after defining them in routerlink in Angular
I'm defining this route
Ofertas
But I see this
That is, I see http://localhost/ofertas when I hope http://localhost/ofertas?Todas=No
Any idea, please?
Thanks

kintela
- 1,283
- 1
- 14
- 32
0
votes
1 answer
Angular routerlink is not working for some reason
I have no idea why this router link is not working
I just want this router to navigate to search module. Well the interesting point is the fact that the page url is localhost4200/technology but still stayes on the homepage, as if there is no search…

Razieh
- 1
0
votes
1 answer
Navigating to the current URL of a named (nested) router nests the route call
I have a base ClazzComponent, ClazzModule and ClazzRouting Module. The ClazzComponent is rendered through the primary in my AppComponent.
The ClazzComponent has a SlideOverComponent that has a named router,

Mike Bagnasco
- 47
- 1
- 9
0
votes
0 answers
How to fix whitelabel error from angular end without setting or using useHash :true
We are working on application where frontend is developed in Angular & backend is SpringBoot.
In our application, when we hit the URL it throws "WhiteLabel Error Page".
To resolve this, earlier we have added hash (#) in Angular side but while Okta…

Shweta
- 1
- 1
0
votes
1 answer
Angular 13: Lazy loaded module with multiple outlets not showing
Angular version
^13.3.9
Problem
When using multiple outlets and trying to render multiple of then in a lazy module makes the angular router route correctly BUT the outlet is not being rendered.
Flow (See example)
User goes to home page url=''. This…

Ownerszz
- 40
- 1
- 6
0
votes
2 answers
Angular routes does not render child components from parent
I have an issue with routing in angular. I have a parent which is the shell component and it is loaded from app component. The Shell has the left menu and the dynamic content section on the right side. Once i click on a link in left menu, i need to…

Nithin
- 371
- 7
- 29
0
votes
0 answers
How to add router link in openstreet map link
I have added different marker on open street map. And when I tried to add link to open new page I am not getting any response.
const marker = Leaflet.marker([lat, lon], { icon }).bindPopup(`

majid khan
- 9
- 4
0
votes
0 answers
How can I set a path first route
I have component tpeDetails that contains children routes(path) that I want to use later to create a router-outlet within this components my code of routing below
{
path: "tpeDetails/:id",
component: TpeDetailsComponent,
children: [
{ path: "",…

Fredrick
- 37
- 3
0
votes
0 answers
Jest+angular testing routerLink with navigateByUrl
I'm wondering how to be more specific about obtaining the url of redirection when user click a router link...
In this case my template would be like :

Enrique GF
- 1,215
- 3
- 16
- 35