3,755
questions
1
vote
1
answer
27
views
The parent component will be activated only when the child route is activated
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, ...
1
vote
2
answers
44
views
merge two ParamMap angular
I have the following code that works fine:
let urlParameters = combineLatest(
[this.route.params, this.route.queryParams], (params, queryParams) => ({
...params, ...queryParams
}));
...
0
votes
0
answers
47
views
Angular App reloads immediately when browser tab is out of focus
My blogging application reloads when i switch tab to a new tab. The moment the tab with the application is out of focus, the application reloads and return to the base route.
For example if I am ...
1
vote
2
answers
144
views
Angular Router - how to destroy old component immediately when routerLink changes
In Angular, after a routerLink triggers a route change, the old component is only destroyed basically at the same time as the new component's initialization:
This is being a problem for me because I ...
1
vote
2
answers
52
views
Angular router.navigateByUrl does not change site content
I am working on client application using newest angular (18). I tried to make the site that after login it redirects to tasks. But when I do navigate, it changes URL and site stays on login page, when ...
1
vote
0
answers
29
views
How to inject RouteReuseStrategy only in specific components?
In my Angular16 standalone app I want to implement a RouteReuseStrategy and add it only to specific components. I found some solutions that implied using some extras (eg https://stackoverflow.com/a/...
0
votes
3
answers
47
views
I am not able to route to another component in angular
<div class="mr-3 ml-3 mt-0 mb-4 leave_card_outer" *ngIf="leaveStatus !=null">
<div class="row bg-white p-2">
<div class="col py-3 ...
0
votes
0
answers
12
views
localization/internationalization in angular using xlf file
https://angular.dev/guide/i18n
i am localizing an angular application using xlf file which is in angular document..same steps..the problem i am facing is that when i refresh the page it shows 404 ...
2
votes
1
answer
83
views
Children route parameter are not set with withComponentInputBinding
In an Angular 18 application I can not have children route parameter set.
I have a route defined as
export const routes: Routes = [
{ path: 'test',
children: [
{ path: ':operation/:id', ...
1
vote
0
answers
36
views
Two <ion-router-outlet> in same page on XL screens
My app has this page structure:
/home
/menu
/A
/B
/admin
so /menu/A and /menu/B are two distinct pages. Anyway, in very large (XL) screens, I could show both of them side by side. So I want ...
0
votes
1
answer
32
views
Route encoding Angular 12: Routing not working as expected [closed]
Recently upgraded Angular application from version 9 to 12.
Now, my current routes are not working, and encoded to %23.
Here is an example of my routes:
{ path: 'app-terminal-request-list', component: ...
3
votes
2
answers
56
views
How to reload a page indefinitely?
The code below reload a page just once after initial page rendering (loading). It does not reload the page after first reload request was made. I want to know how to reload a page indefinitely. In ...
2
votes
1
answer
45
views
How to maintain query params when redirecting in Angular RoutingModule with redirectTo?
Summary
I want to redirect in my Angular RoutingModule from one path to another while maintaining the query params. However, when the redirect completes, the query params are not present anymore.
The ...
2
votes
0
answers
43
views
Single-page web app accessibility, putting the user in the right place after navigation
I'm working on an Angular application and focusing on accessibility. At the top of the page are "skip to main navigation" and "skip to main content" links. It's been my idea, with ...
0
votes
1
answer
41
views
Angular client side dynamic route redirect to wildcard route on page reload
In angular app I have hundreds of dynamic routes. Which are added in route config after an API call.
But when I reload the same page with dynamic route, browser send the request to server and return ...