All Questions
Tagged with angular7 angular7-router
75
questions
0
votes
1
answer
526
views
How can I prevent Delay in loading a path from the Routes array in angular
I have lazy loading implemented. Divided into modules. And set up the routes. Everything is working.
I have doubt regarding the order of module loading. I noticed that, if I try to load any module ...
2
votes
0
answers
568
views
I cannot navigate to the dashboard page after logging in keycloak in angular
I get the following error
I added the codes as follows. Keycloak login screen appears. Cannot be redirect after login.
const keycloak_config = config.keycloak;
this.keycloakAuth = Keycloak(...
0
votes
1
answer
770
views
How can I uphold an api request from being cancelled when the router change in angular 7?
I have used a 'Service' and an 'Interceptor' to cancel all pending request when i switch between pages in angular. I have followed the steps in this tutorial for that. Now i need to uphold some api ...
0
votes
2
answers
150
views
Angular7 slow page load
I have an Angular7 app that was passed onto me. The First Contentful Paint and Time to Interactive is about 6 seconds! It seems to stall(pending) for about 4 seconds on https://www.google-analytics....
0
votes
2
answers
785
views
Angular 7: flatMap is not a function
I am migrating from angular 5 to angular 7, its when I am getting this error when I do npm start.
const config = this.router.events.pipe(
skipWhile(() => !this.router.navigate),
take(1),
flatMap(() ...
0
votes
1
answer
2k
views
Angular 7 Routing and Navigation is not working in IE 11
In my Angular application, i have implemented routing using RouterModule. I have three buttons on a page on click of that page gets navigated to another page. Everything is working fine on Chrome, ...
0
votes
1
answer
641
views
Expected spy navigate to have been called with [ [ '/login' ] ] but it was never called
I am writing test case for a below block of code:
someFn() {
if (this.loginStatus === '1') {
this.router.navigate(['/login']);
}
}
In my spec file:
import { Router } from '@angular/...
0
votes
1
answer
62
views
Angular 7 Nested Lazy Loaded Children Routes
I have following code:
app-routing.module.ts
const routes: Routes = [
{
path: 'login',
component: LoginComponent
},
{
path: 'user',
loadChildren: './modules/user/user.module#...
0
votes
1
answer
34
views
Routing children concept not working in angular 8
I am creating a website.In my website I am trying to create admin part.Inside my admin module I have more component like login,dashboard,products ect..but in my code admin page is coming but children ...
0
votes
1
answer
351
views
Show components base on url Angular 7
I need to do this:
On desktop:
1) Open an route, there is tasks list
2) Ckick on task, then ull see task and a map
On mobile
1) Open an route, there is tasks list
2) Click on task, then ull see ...
0
votes
1
answer
659
views
Angular Routing Problem after excel download
My Routing works if i dont download the excel file but if i download file and then use routing then it fails.
The Line which seems to be problematic is this line:
**const Excel = require('exceljs');...
0
votes
1
answer
161
views
Angular 7.3 how to get data from the route
I want to pass the current URL from the app.routing.ts file to the guard because there is a problem where the url gets reset in the guard for some reason. Below I added how I pass the data to the ...
0
votes
1
answer
1k
views
How to allow routing to get url localhost:4200/overview? Partid=number
problem
How to change routing to get this URL localhost:4200/overview? Partid=number ?
number here any dynamic number as 5 etc .
I need when write on URL of my angular app
localhost:4200/overview? ...
1
vote
0
answers
121
views
export entire angular 7 application as a module
There is a requirement in our project that we have to combine 2 or more sub angular applications into a container angular application through we want to make single page angular portal.
Advantages:
...
3
votes
5
answers
15k
views
i am using angular 7 when routerLink not working when i click on anchor button it's not working
in angular 7 i have define different component app folder and define component in route is well when i definde router name in url it,s work fine show me that component which is attached to that url ...