Skip to main content
Filter by
Sorted by
Tagged with
1 vote
2 answers
84 views

I try to prevent user to navigate to a non-existent id parameters with my details component. I read the documentation of Angular v20 and it seems that the "resolvers routes configuring" is ...
Thibault Bruhiere's user avatar
3 votes
1 answer
108 views

Below are my current routes. If the user is not authenticated, I don't want them to be able to access any of the routes protected by the AuthGuard and they should be redirected to the Login page. This ...
Baguji's user avatar
  • 77
0 votes
0 answers
58 views

I’m building an Angular frontend for an ERP-like system, and I’m trying to generate a link like: <a [routerLink]="['/erp/real-estates/objects', objectId]">Gå till objekt # som ...
Memo12345's user avatar
0 votes
0 answers
62 views

Is there any way to see the http error response in a NavigationError? When navigating in angular, navigation can fail for different reasons. I'd want to catch at least two of those, namely: Internet ...
hakuni's user avatar
  • 189
2 votes
1 answer
79 views

I've come back to Angular after a long time and am a bit confused. Last time I used angular any routes defined where being rendered as children of router outlet. But now it is being rendered as child ...
Prithvi Emmanuel Machado's user avatar
1 vote
0 answers
81 views

The url: http://www.example.com/#/orders/new/today/3640963 shows me the 'new tab', with the order details view open. This is when I click to it in the app. If I copy that URL and paste it in a new ...
Pepper's user avatar
  • 729
1 vote
2 answers
113 views

Angular: 18.2.13 Jest: 29.7.0 I'm unit testing a method in my component which performs a router.navigate after a successful HTTP call. Note that I've removed some of the unncessary code for brevity ...
commadelimited's user avatar
2 votes
0 answers
27 views

I have urls defined like this: E_one = '/url1/' E_two = '/url2/' E_three = '/url3/' export LINKS = { E_one: E_one, E_two: E_two, E_three: E_three} So I import 'LINKS', but then I want to dynamically ...
Travis Heeter's user avatar
2 votes
1 answer
114 views

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
0 votes
1 answer
55 views

In my Angular app I need to be able to unit test that routerLink create the correct href attribute. Sometimes they are links relative to the current route, and sometimes they are absolute links from ...
Chris Barr's user avatar
  • 34.6k
1 vote
2 answers
99 views

Given the following routes: export const routes: Routes = [ { path: "test-1/:name", component: TestComponent, title: "Main 1" }, { path: "test-2/:name", component: ...
Barney's user avatar
  • 2,868
3 votes
0 answers
63 views

I'm facing a persistent routing issue in my Angular application (version 15.2.9) after refactoring some features into lazy-loaded feature modules. The error NG04002 ("Error: NG04002 Error: ...
LFD97's user avatar
  • 33
1 vote
1 answer
76 views

In my single page angular app I represent the groups data in the tabs, one tab per group, one dynamic url with groupId in it per group tab. During first loading a user gets redirected to the tab of ...
Anna Do's user avatar
  • 295
1 vote
3 answers
299 views

Goal I'm using Angular with the new signals feature and the experimental HttpResource. I want to: Extract an id parameter from the route. Bind this id to a signal. Use that signal to fetch product ...
zerotohero's user avatar
0 votes
1 answer
72 views

ngOnInit() { this.router.events.subscribe(event => { if (event instanceof NavigationEnd) { if (event.url === '/common/time') { this.zone.run(() => { ...
Dwarknight's user avatar
0 votes
2 answers
78 views

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
46 views

I have dynamically added component with its own router outlet(for child paths): this.componentRef = this.modal.createComponent(ComponentA); After removing this component via destroy method: this....
Michał B's user avatar
  • 555
1 vote
1 answer
200 views

I've run into a problem that my header's imports are not loaded properly in SSR. In my Angular 19 application the app.component.html includes a static <app-header> component that should exist on ...
Ivan Kusliy's user avatar
1 vote
1 answer
53 views

Let's assume I have something like this in my code: <button routerLink="/account" routerLinkActive="active">Account</button> Is there a way to access this element when ...
Michał B's user avatar
  • 555
0 votes
1 answer
58 views

I am using Angular 19 and trying to create routes that look like this https://localhost:4200/pics/pc-arch/mnt/drive and https://localhost:4200/pics/pc-arch/mnt/drive/gallery1.jpg. I have the following ...
Hemal's user avatar
  • 75
2 votes
1 answer
50 views

I have this configuration in my routing in Angular: ... { path: 'account', canActivate: [AuthGuardService], children: [ { path: '', ...
Michał B's user avatar
  • 555
1 vote
0 answers
221 views

Somehow, the live reload (when any code is changed) causes routing issues. I've spent couple of hours investigating this, however couldn't understand what is going on. Here is what happens: When I ...
Semen Shekhovtsov's user avatar
0 votes
0 answers
29 views

I need to encrypt and decrypt query parameters in an Angular application. My idea is to create wrapper classes around Router and ActivatedRoute to handle encryption before navigation and decryption ...
Tengu's user avatar
  • 1
1 vote
1 answer
97 views

I'm currently trying to display a loading indicator on navigation in Angular. The issue I am experiencing is that when the user is tries to get on a protected route, the guard will redirect them but ...
user p's user avatar
  • 69
1 vote
1 answer
35 views

The app loads app.module where I give it a route: export const routes: Routes = [ { path: '', resolve: { mockData: MockApiResolver }, loadChildren: () => import('./shared-components/...
Tom Rudge's user avatar
  • 3,222
0 votes
1 answer
203 views

I currently have the issue that my HTTP requests are stuck in a "pending" state (for more than 10 seconds until it starts the request). This issue is especially common if I navigate to other ...
Razzer's user avatar
  • 891
1 vote
1 answer
773 views

I have a simple route system in Angular 19, basically it is the home page and an about page that are between a header and a footer. However, despite the URL changing when clicking on the redirect link,...
ViniciusDevelopment's user avatar
1 vote
1 answer
823 views

Why is this routing config not working? The router is trying to go /posts but it should not go to /posts. Currently it is showing a blank page. BlankComponentComponent contains router-outlet and ...
Indraraj26's user avatar
  • 1,994
2 votes
0 answers
143 views

I have enabled view transitions using the withViewTransitions() function in provideRouter(). Now I like to write a directive or something to be able to disable the transition view for a specific <...
Ali's user avatar
  • 1,472
0 votes
0 answers
121 views

My Netflix clone project uses Angular19 with SSR, the view always renders a component from Router and a home component. Means always two component on one page. in my angular19 project, with the router-...
yue dong's user avatar
1 vote
1 answer
207 views

I’ve noticed that my Angular app generates several small bundles (some as small as 179 bytes, with a few others under 3.1 KB). These small bundles are typically related to routing files or small ...
Anoush M's user avatar
0 votes
0 answers
66 views

Using Angular 18, I have a workspace and within it a lib-one. I want to know how I can apply routes within lib-one? Is it possible? Within the lib-one I have two components: component-a and component-...
José Damião's user avatar
1 vote
1 answer
137 views

I have a HTML code: <table mat-table [dataSource]="claims" matSort class="mat-elevation-z8"> <ng-container *ngFor="let column of displayedColumns" [...
Ajay Kulkarni's user avatar
0 votes
1 answer
378 views

I'm discovering angular material, and I'm struggling to find the correct way of highlighting the activate route in the navigation component. I noticed it was not done by default in the navigation ...
Stef's user avatar
  • 1
0 votes
0 answers
218 views

I'm working with Angular and have implemented a NavigationService to handle routing/navigation in my app. However, i’m experiencing an issue where the navigation does not occur on the first click. I ...
zicoooo's user avatar
0 votes
1 answer
111 views

I have a test Angular18 website hosted on Github Pages. I have an About page that works perfectly on my localhost, but came back as 404 not found. I created a 404.html file as suggested in many posts, ...
hoshijun's user avatar
1 vote
0 answers
31 views

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
1 vote
1 answer
151 views

I have the following code in my old version of Angular import { Injectable } from '@angular/core'; import { ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot, UrlTree } from '@angular/...
vinudev's user avatar
  • 87
1 vote
1 answer
46 views

My routing is set up like this (main parent node with a bunch of child sub nodes). export const routes: Routes = [ { path: "", component: HomeComponent }, { path: "profile", ...
Konrad Viltersten's user avatar
2 votes
1 answer
459 views

So I have been working Angular for a time, but I recently started using v18 only, and wanted to make a simple app with standalone components... I am routing all unidentified path to landing, and from ...
CreativeZoller's user avatar
1 vote
1 answer
34 views

I have a Angular application, which has multiple components that access the same Service. I am trying to understand if there is any benefit to switching away from using route parameters to using ...
Nick Fallows's user avatar
1 vote
2 answers
55 views

I'm still learning Angular, and I'm trying to build a dynamic nav. This won't be my main nav, but a duplicate in the footer. My main nav works fine, an i'm lazy loading in my app.routes.ts. Here is ...
Mark Handy's user avatar
  • 1,286
2 votes
2 answers
105 views

I have a navbar that the selected/active navitem is recognizable by an orange underline. However, when I open another navitem in a new tab (by rightclick), the default navitem is underlined and not ...
user6781's user avatar
  • 621
1 vote
1 answer
790 views

In Angular 18, I am trying to resolve a value before navigation, but redirect to another page based on that value. Please don't link to a page titled "Redirecting Guards and Resolvers in Angular ...
user2977624's user avatar
1 vote
1 answer
49 views

I want a route structure like this: If I go to the "/sale" route: dashboard feature sale If I go to the "/" route: dashboard That is, if the child route is not activated, ...
Ersin's user avatar
  • 21
1 vote
1 answer
242 views

I have html component: <section class="flex flex-col w-full h-[100vh] overflow-hidden animate__animated animate__fadeIn" > <!-- Top navbar remains fixed at the top and does not ...
user28273827332's user avatar
0 votes
2 answers
72 views

I need to team suggestion , I have more than 10 form. I want create common directives or any other option form value change before routing. If form changed we need to get confirmation from ...
CMS Develop's user avatar
0 votes
1 answer
112 views

I can get params from paramMap: this.route.paramMap.subscribe((params: ParamMap) => { this.templateService.get(+params.get("id")!).subscribe((response: Json | JsonError) => { ... ...
A. Gladkiy's user avatar
  • 3,502
2 votes
3 answers
130 views

I have the following code that works fine: let urlParameters = combineLatest( [this.route.params, this.route.queryParams], (params, queryParams) => ({ ...params, ...queryParams })); ...
A. Gladkiy's user avatar
  • 3,502
1 vote
0 answers
94 views

https://stackblitz.com/edit/stackblitz-starters-cdffrt The issue is after navigating to the person details component, if you refresh the page, this.person doesn't seem to know that it's a Person class,...
Zachary Richardson's user avatar

1
2 3 4 5
39