All Questions
Tagged with angularjs angular-routing
913
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(...
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 ...
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 ...
-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(...
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 =&...
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 ...
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 %{...
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&...
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=&...
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 ...
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....
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 ...
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 ...
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 ...
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 ...