Skip to main content
How are we doing? Please help us improve Stack Overflow. Take our short survey

All Questions

0 votes
0 answers
137 views

Cannot trigger resolver in Angular 5 using lazy loading modules

I am trying to rewrite Angular5 app into lazy loaded modules, but cannot identify why resolvers are not triggered. Modules are loaded properly, but resolver never. I have tried multiple different ...
jokuja's user avatar
  • 89
0 votes
2 answers
5k views

How to lazy load module after api response in angular?

I want to lazy load a module after API response below are my routes const routes: Routes = [ { path: "", component: LandingComponent }, { path: 'student', loadChildren: () => import('./...
Vikas Kandari's user avatar
1 vote
1 answer
571 views

Angular : pass optional data within route

I'm using angular 5 , I ve a long routing file : const homeRoutes: Routes = [ { path: 'home', component: HomeComponent, children: [ { path: 'registration', component: ...
firasKoubaa's user avatar
  • 6,809
6 votes
5 answers
2k views

How to pass optional Router Parameter with preserved URL in Angular5

I have some specific requirement in that have to work with Existing URL. Existing URL's are already well indexed and used for promotions and many campaigns so no chance to modify it. Existing URLs is ...
Ajarudin Gunga's user avatar
0 votes
2 answers
2k views

Cant navigate to specific page in Angular

I cant navigate o specific page in my angular app, in this case i want to navigate to (tabs/market-palce/fornecedores) from app.component.ts here my routing Modules. Error: Cannot match any routes. ...
Kevin Dias's user avatar
  • 1,076
0 votes
1 answer
87 views

Entire Page getting reloaded whenever calling a Component of different module from app.module using RouterModule.forChild()

I have a navigation bar menu from where i am calling a component of different module, Component is getting called but page is getting reloaded. Please help. I have defined loadChildren in ...
Rohit Adhikari's user avatar
1 vote
1 answer
779 views

how to prevent user from routing , when token is expired [closed]

I am working on Angular 7 Application I am using JSON Web Tokens (JWT) to secure my Angular Application I want to check weather token is expired , and if it is expired I want to prevent user from ...
Testing Anurag's user avatar
0 votes
1 answer
159 views

function in constructor should not load on going back Angular

I am working on Angular 7 Application and , I am facing problem on stopping a function to call again ,where function exist in in constructor , which I stop calling again on navigating back to the ...
Testing Anurag's user avatar
0 votes
2 answers
658 views

facing problem in handling route on pressing browser back button

How we can handle route in Angular using browser back button , on pressing back button I want browser should not route back page for example .. ** we go page A to B then we can't go back to ...
Testing Anurag's user avatar
0 votes
0 answers
61 views

how to freeze the state of the component 1 on going back to it from component 2

In my Angular Application I am trying to freeze the state of the component one when I go to component 2 and again come back to component 1 . Details -: In component 1 there are 6 tabs when I ...
Testing Anurag's user avatar
0 votes
1 answer
41 views

Unable to read parameter and facing problem in loading component again on changing parameter in route

I am working on a Angular Project where I am facing problem in routing. I am unable to read the parameter once it is passed through route on selecting any options in the navbar. I am unable to reload ...
Testing Anurag's user avatar
1 vote
4 answers
3k views

how to replace routing path in Angular

**base path is - ** http://localhost:2000/matchcenter/cricket when I click to load another page by clicking to menue my route becomes http://localhost:2000/matchcenter/cricket/football and I ...
Testing Anurag's user avatar
0 votes
0 answers
22 views

Angular 5, Route not working in layout, whereas parent is working

routing in layout module:- { path: 'userlogin', component: UserloginComponent } parent routing in app.routing { path: 'login', component: UserLayoutComponent, pathMatch: 'full', ...
Arsh's user avatar
  • 27
1 vote
0 answers
181 views

Facing problem in loading component over another component

I am working on Angular Project , where I am trying to load Component over another without background component changes , and url of background component changes for example -: Suppose User ...
Testing Anurag's user avatar
10 votes
4 answers
3k views

Angular 5 - Dynamic base reference is causing duplicate loading of bundles|chunks

I am using Angular 5.2 version in the project. I am setting the base reference dynamically in the index.html to satisfy the different URL for different clients. The app main page url looks like this ...
Karan's user avatar
  • 3,328

15 30 50 per page
1
2 3 4 5
7