Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

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

After keycloak login page "Cannot match any routes. URL Segment: '&iss'"

I have an angular application authenticating using keycloak, keycloak-angular and keycloak-js. It was working good but recently it started to throw below error on the console. core.mjs:6484 ERROR ...
Vikash's user avatar
  • 2,125
0 votes
2 answers
64 views

Object Attributes are undefined after routing in Angular

A newcomer to Angular here. I know similar questions have been asked before and I read too many of them here, answers about AJAX and async programming, but couldn't solve the issue. I want to see the ...
romancedawn's user avatar
-1 votes
2 answers
761 views

Lazy loading angular 17 not loading the child routes

i am trying to implement lazy loading on admin interface. In app-routing.module file i am using the below syntax { path: 'admin', loadChildren: () => import('@/admin/admin.module').then(...
Sanjeev Sharma's user avatar
0 votes
1 answer
61 views

Angular - Route two different paths to different components within the same lazy-loaded submodule

I've two paths /a and /b In my parent module, I route them to the same child module: // app-routing.moudle.ts { path: 'a', loadChildren: () => import('./m-child/m-child.module').then(m =&...
Sanjay Verma's user avatar
  • 1,526
0 votes
0 answers
62 views

How to routes and redirects between components in Angular

I am trying to navigate and redirect to specific users information page using their IDS and path them through anchor link tags by passing the id in the HTTP endpoint and retrieving it as parameter. I ...
kelyen's user avatar
  • 23
0 votes
0 answers
15 views

.htaccess rerouting on AngularJS Project

I am trying to create a .htaccess file to handle routing for my Angular Web that were deployed on a hosting provider. The current .htaccess file is like this: RewriteEngine on RewriteCond %{...
Sachio Shaan's user avatar
1 vote
0 answers
34 views

how to add a style to a container depending on which routerLink finds me at that moment

my menu: <header class="box-one" > <nav> <ul class="menu-horizontal"> <li><a routerLinkActive="active" routerLink="/init&...
Elian F's user avatar
  • 13
1 vote
2 answers
238 views

Nav links not showing (bootstrap, angular)

I tried using routerLinkActive and routerLink for my nav links and it affects the display of the navigation links. =====app.component.html====== <app-navbar></app-navbar> <div class=&...
horla's user avatar
  • 11
0 votes
0 answers
139 views

Angular route with segment variables not reloading the child component when the url changes dynamically

Angular route with segment variables not reloading the child component when the url changes dynamically. I am trying to have both the parentRoute and the childRoute inside one component and whenver i ...
user18496468's user avatar
0 votes
1 answer
95 views

My Angular Routing is nearly identical to the W3schools example, why is it not working?

So I was trying some basic experimentation in Angular Routing. This is a near perfect copy and paste from the W3Schools Angular Routing example. But it doesn't work, except for the "purchase....
DennisM's user avatar
  • 537
0 votes
1 answer
67 views

Prevent Angular removing = after # in URL?

We have a hybird AngularJS-Angular application. We have "sibling router" setup whereby each router is aware of which paths belong to it and will render a blank component for any route that ...
Jansky's user avatar
  • 1,507
1 vote
2 answers
816 views

Change angular router component depends on configuration

I have the next routing definition: export const ROUTES: Routes = [ { path: "test", component: FooComponent ] in a my application I have two components: FooComponent and ...
anguser's user avatar
  • 11
0 votes
2 answers
3k views

Angular - How to point multiple routes to a single component

Hi below is my scenario. I have two child modules with different routes Eg route 1 : http://localhost:4200/launch/upcoming/launchdetails Eg route 2 : http://localhost:4200/launchdetails I am ...
user1663373's user avatar
1 vote
4 answers
1k views

Is there a way to preserve DOM state of the component after navigating away and back in Angular

After researching the issue for a few days I've seem to have reached a dead end. I'm dealing with, what I assumed, was a fairly common scenario: After user navigates to a certain page and makes some ...
Nenad Nikolic's user avatar

15 30 50 per page
1
2 3 4 5
61