Skip to main content

Questions tagged [angular-routing]

The ngRoute module provides routing and deeplinking services and directives for AngularJS apps.

angular-routing
1 vote
1 answer
33 views

Redirecting to /home When Entering URL with Route Parameter

I'm encountering a strange behavior in my Angular application. When I navigate to a route with a date parameter using a link within the app, it works perfectly. However, when I copy and paste the same ...
KaptainIglo's user avatar
1 vote
1 answer
33 views

Lazy loading angular child routes with no common url ancestor

I'm using angular 15. In my main module's routing, I've got the following routes to lazy load the MediaModule { path: 'video-page', loadChildren: () => import('app/myapp/submodules/media....
David's user avatar
  • 34.2k
1 vote
1 answer
43 views

Angular how to prevent user from reload or go back using route guard

Angular how to prevent user from reload or go back using route guard. I have basically a component and i want to make sure that when user click on reload the page or go back, it will then return to my ...
anscom ooi's user avatar
1 vote
1 answer
41 views

Angular 17 auxiliary route

I am trying to configure auxiliary route in Angular 17 but have some issue most likely due to the change to standalone components. Here is my configuration: export const FEATURE_ROUTES: Routes = [ { ...
camel's user avatar
  • 87
0 votes
0 answers
21 views

nested route path is not working inside lazy loaded named router outlet

In my angular app-routing.module I am loading a module name layout.module ,in layout module I am loading a module ftl.module, in ftl module ftl-order component is visibale if path is blank,but it is ...
user25751916's user avatar
1 vote
1 answer
43 views

Dynamic routing in angular based on a condition

I want my app to route to different components based on an environment variable(e.g. switch). In the constructor of app routing module , I have added the condition to check for the variable. if(...
Teeee's user avatar
  • 13
0 votes
1 answer
97 views

Angular 17 and above: How to add a guard or protect empty path, redirectTo route

I am not able to add any guard or anything for redirectTo route in my case which is an empty path. I am using MSAL for authentication, MSAL does provide a guard and its working for other routes. So ...
Rakeys's user avatar
  • 69
2 votes
1 answer
32 views

Is there a way to create nested router-outlet that replace a component partial in angular

Is there a way to load a component inside another component by changing the route. Let me explain: I have the basic route config in the app-routing.module.ts and the router-outlet tag in the app....
riki's user avatar
  • 2,309
0 votes
0 answers
45 views

Using Angular router outlet in overlay

I want to use router outlet in dynamically added overlay element. I have route which is opening overlay on init and component rendered on overlay has his own router outlet. I also use ViewContainerRef ...
Michał B's user avatar
  • 453
0 votes
0 answers
29 views

Ionic Angular TypeError: this.router.navigate is not a function

i am making a API call after the QR code scan,in the qr code row value my api url is present after the successfully fetching data i want to redirect to registration page but the following error is ...
Kumarjit 's user avatar
1 vote
1 answer
54 views

Access child components through <router-outlet> tag in Angular 17

In my app.routes.ts, export const routes: Routes = [ ... { path: "student", component: StudentComponent, children: [ { path: "first-component", ...
nikita's user avatar
  • 21
1 vote
1 answer
56 views

Angular 2+ the Selected tab stays selected after i reload the page

I want the selected tab stays selected after I reload the page, but this wont happen. In The first image, I'm in the second tab which displays itself in the URL and in the navbar, This is before ...
erfan shafighnia's user avatar
1 vote
1 answer
184 views

How to use angular's withComponentInputBinding for @Input and signal input/model to use their initial value if not set through router?

I feel like there is a happy median somewhere for the withComponentInputBinding option I am missing. Right now, I include it in providing my router in app.config, and any inputs I use that have ...
bobdebuilder's user avatar
1 vote
1 answer
65 views

Angular 17 Router not working on node server

I'm with a strange situation. I'm making a simple app that for now needs to go from the landing-page (directory '') to a form component (directory '/form') using Angular 17 and node.js with express.js....
Maju's user avatar
  • 13
0 votes
0 answers
20 views

getting data from resolver in angular guard

I have following problem: While routing to this path it gets me to appropriate component with resolver you can see below. this component has its guard and I want to reach the data from resoler in ...
Bartek's user avatar
  • 103

15 30 50 per page
1
2 3 4 5
250