Skip to main content

All Questions

0 votes
2 answers
52 views

How to use a secondary router outlet without ng modules correctly to enable page reload by url?

How to use a secondary router outlet without ng modules correctly enabling page reload by url? I have an app component with a router: <main> <router-outlet></router-outlet> &...
tobias hassebrock's user avatar
1 vote
1 answer
175 views

Rerouting to child route not working as expected

I have 2 components: claims-summary and claims-insights. When I am in the claims-summary component, the URL will be "/claims-summary/claimId/". When I navigate from claims-summary and claims-...
Ajay Kulkarni's user avatar
1 vote
1 answer
109 views

How to have a route guard that routes to an auxiliary route after passing?

I have a section of my Angular app that is only accessible through a generated link sent to the user's email (a Docusign type thing). It is sectioned off from the rest of the app via a feature module, ...
Alex Davis's user avatar
1 vote
0 answers
28 views

how to pass state in default route Angular

i'm facing an issue passing router state to the default child route("general"), the state is set only when i click on the tab, FunctionalLocationDetailsComponent is parent component, ...
Rihab's user avatar
  • 67
0 votes
1 answer
57 views

Why interacting of two guards leads to infinite redirection loop in Angular 18?

I've got routes '/' and '/auth'. The logic is that NOT logged in users can access ONLY /auth page, while logged in users CAN'T access it. So, I've made two guards and for some reason I get infinite ...
ADEXITUM's user avatar
1 vote
0 answers
18 views

routerLinkActive is applied to every fragment (anchor) link [duplicate]

In my header in every link I have routerLinkActive, but the style-class is applied to every single link because, I guess, Angular doesn't care when it's fragments. Does anyone know how to apple ...
Nikita Smirnov's user avatar
2 votes
0 answers
54 views

Wrong Redirect Angular Router (to localhost)

This is the example url : localhost:4202/pages/users/STSP0001PNIENOUIJX/dashboards/level/0 app-routing.module.ts const routes: Routes = [ { path: 'pages/users', loadChildren: () => ...
Niccolò Boddi's user avatar
1 vote
1 answer
432 views

Angular 18 - Route to nested components

I have a Login component which is the initial page. On the success of Login, it will route to the Home component which will hold 3 components: TopBar component which has a nav bar & 2 components ...
Dnyati's user avatar
  • 179
0 votes
0 answers
57 views

Mock ActivatedRoute breaks Router createUrlTree when using relativeTo parent

I'm having trouble mocking ActivatedRoute with a valid parent property. I've tried a myriad of combinations on the providers metadata property of TestBed.configureTestingModule() similar to: await ...
Rolando Isidoro's user avatar
0 votes
2 answers
158 views

NG - Problem navigating back to Login-Page after successful Logout

I have the problem with my angular spa, that after the user successfully logs out, the navigation back to the login page per default doesn´t work. This means https://domain.tld/login is shown in the ...
meDom's user avatar
  • 295
1 vote
1 answer
87 views

Angular 11 - Route using named outlet redirects to '/'

I'm upgrading an Angular application from v10 to v11 that uses routerLink pointing to the outlet named dialog to create modal dialogs. The current component (CoreComponent in the example below) should ...
zserdely's user avatar
  • 113
1 vote
2 answers
106 views

Angular: Scroll to a section on page load when navigating to a specific URL fragment

I'm working on an Angular application and I have a function that scrolls smoothly to a specific section on the page. The function works perfectly when I trigger it manually. However, I want the page ...
coder's user avatar
  • 673
0 votes
1 answer
59 views

Subscription pipe logic errantly processing when using switchMap on button press

Edit: I have found a workaround by using updating my event filter to: filter(event => event.type === EventType.NavigationEnd && this.route.snapshot.queryParams['test']) which ...
expenguin's user avatar
  • 1,124
1 vote
2 answers
663 views

Child Router is not receiving second path - ignoring child path

This is hour 10, I've tried 20 differnet configurations. the first set works fine. the children under company only evaluates localhost:4200/Employee-pub/1 -\> localhost:4200/Employee-pub/1 ...
Sean Miller's user avatar
1 vote
0 answers
33 views

Submenu Not Working After Lazy Loading Dashboard in Angular

I'm working on an Angular application with lazy loading for the dashboard screen. I've encountered an issue where the submenu is not functioning properly when the dashboard is loaded lazily. Below is ...
Sumit Singh's user avatar

15 30 50 per page
1
2 3 4 5
291