Skip to main content

All Questions

Tagged with
0 votes
2 answers
113 views

Redirect page with condition from routing file in Angular 5

I want to redirect page from my app-routing.module.ts file I have two domain i) abcd.in ii) abcd.hk, so i want to redirect in different page from both Domain Below is my routing file code { path: ...
Apurv Chaudhary's user avatar
2 votes
3 answers
2k views

Pages overlaps on navigation in Ionic4

I have developed an application using ionic4. I am facing an issue during navigation the pages overlaps like below give picture. I am using NavController for navigation. public editUserProfile() {...
Arj 1411's user avatar
  • 1,401
3 votes
0 answers
4k views

Not able to do route navigation possibly due to resolve in angular 5?

This is my Login component login-component.ts ngOnInit() { this.loginEventsData = this.route.snapshot.data['loginEventsData']; this.isAppActive = this.loginEventsData["A"][0]["...
RS17's user avatar
  • 793
1 vote
1 answer
303 views

This.router.navigate does not call component constructor - Angular 5 / AWS Amplify

I'm having trouble with a sign in method I am trying to do with AWS Amplify. It has multi-factor authentication and when the MFA is successful I am trying to route the app to another route/component ...
Travis Alexander Terrell's user avatar
0 votes
1 answer
216 views

Resolver not works - angular

state.service.ts import { Injectable } from "@angular/core"; import {Http} from "@angular/http"; import {Resolve, ActivatedRouteSnapshot, RouterStateSnapshot} from "@angular/router"; import { ...
Abidh's user avatar
  • 457
46 votes
4 answers
118k views

angular router navigate then reload

So I want to reload the app after navigating to a specific route .. I use router.navigate to navigate to certain route based on user role and that works fine but I have to reload the page after ...
Omar Abdelhady's user avatar
2 votes
3 answers
3k views

Angular 5 Routing : Empty path inside empty path

I'm using Angular 5, trying to load a empty-path child route into a empty-path parent layout route. The FullLayoutComponent always loads, and the WhyUsComponent component loads when I visit localhost:...
blomster's user avatar
  • 806
0 votes
0 answers
57 views

Always redirecting to home

Application is always redirecting to home page when I try to enter /candidates url path. The rest of the paths are working fine. Console doesn't throw any errors as well. Routing Module import { ...
Ashwin Athrey's user avatar
0 votes
1 answer
1k views

Type "LocationComponent" is part of the declarations of 2 modules:Angular 6?

I am completely new to angular, so I cant able to resolve my error using other stack flow answers. Kindly help. I am using an angular 6. I already have a basic format,so I am trying to add child page....
Riya's user avatar
  • 157
0 votes
0 answers
154 views

Defining Guarded and Unguarded Duplicative Routes (Angular 5)

Is it possible to define duplicative routes, with one route being guarded and the other being unguarded? Conceptually I'd like to define a guarded parent route with protected child routes, and ...
davecalvin's user avatar
2 votes
1 answer
4k views

How to pause the route change in navigationStart router event

In my application I have routes exposed from packages (node modules). So i couldn't use canActivate or canDeactivate for the routes defined inside node modules. So I started subscribing to all route ...
Keshav1007's user avatar
0 votes
1 answer
2k views

Angular 5 - Return to previous state

I have an Angular web app where I need to return to the previous state. For example, say I am on a page found at http://localhost/someURL. On this page, a user is able to search for items and is ...
R2B Boondocks's user avatar
2 votes
0 answers
73 views

Change routes if mobile device Angular5

I have a very big web application. I have created a mobile and a desktop version of the app with different components for each version. In the app.routing.ts I can detect if the user is using a ...
KLTR's user avatar
  • 1,316
0 votes
0 answers
48 views

Protecting routes without authGuard

I have two types of users: Admin and normal user and I am using a micro-service concept so I have two Angular apps. App 1 is for Login, if success then redirect to url of App 2. I've already used ...
Atom's user avatar
  • 441
3 votes
1 answer
4k views

Lazy Loaded Module with CanActivate guard for checking Roles of logged in user

I have a lazy loaded module with canActivate guard and after the lazily loaded module is loaded, somehow the page is made unauthenticated (say by logging in as a different role in different tab of ...
khush's user avatar
  • 2,782

15 30 50 per page
1
2 3 4 5