Skip to main content
1 vote
1 answer
67 views

Angular OAuth with Docker and hashed routing

I have a confluence of a few things that are all great individually but when I bring them together, they are causing problems. I have an Angular SPA, updated to Angular 20, that uses a Keycloak server ...
John M's user avatar
  • 332
2 votes
1 answer
104 views

Multiple <router-outlet> Angular 19

I have a page where I display a material table with a select drop-down to select a category from multiple categories and a search box to filter the table. I want to give each category in the drop-down ...
Menahem Gil's user avatar
1 vote
1 answer
113 views

Angular 19 - NG04002: Cannot match any routes. URL Segment: 'company-create'

I've been researching this all morning and can't seem to figure this out. I keep getting this error but followed (what I thought) the fix from others. I'm new to routing within a nav component. I'm ...
PPJN's user avatar
  • 364
3 votes
2 answers
175 views

Angular 19 - Routing not working with <a> element

I'm developing a simple app to practice with Angular and I'm hitting a wall regarding routing. I'm not using standalone component. I have a app.routing.module as follow: import { NgModule } from '@...
Braise's user avatar
  • 75
3 votes
0 answers
59 views

How to change the state of a routerLink to a route whose navigation is prevented by a guard

If I have a route like: export const routes: Routes = [ { path: 'phony', component: PhonyComponent, canActivate: [() => inject(PhonyService).ok] } ]; And a ...
Pragmateek's user avatar
  • 13.6k
0 votes
2 answers
75 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
200 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
130 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
78 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
55 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
473 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
2 answers
197 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
  • 305
1 vote
1 answer
91 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

15 30 50 per page
1
2 3 4 5
321