All Questions
Tagged with angular5 angular2-routing
90
questions
1
vote
1
answer
1k
views
how to open sub sub routes with angular?
I've been trying to open my angular sub routes but the url changes but the page itself does not show. My routing page is
import { NgModule } from '@angular/core';
import { PreloadAllModules, ...
-1
votes
1
answer
42
views
Subscription is not assigneable to type route
I am trying to set canActivate route but I am getting syntax error(Subscription is not assigneable to type route):
canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) {
const pin = ...
1
vote
4
answers
1k
views
Angular 5 - Loading data from URL into a provider so it's available everywhere in the app
I have an encoded URL parameter that I need to decode when the app initializes. I need to do this in a provider because that object needs to be available to routing guards as well as components.
I ...
1
vote
1
answer
1k
views
error: ERROR TypeError: Cannot read property 'name' of undefined on passing data from parent to child component
I am working on a Angular application where I pass data from parent to child component. But I am getting error:
error:
**
ERROR TypeError: Cannot read property 'name' of undefined
**
I am ...
0
votes
1
answer
50
views
Using angular7 how to get dataBase updated value after component call using server API
After login success, I am getting data in database showing dashboard, but the scenario is I have to get updated data from the database without component reload
1
vote
1
answer
497
views
How to call lifecycle hook with API getting data from a server and also not affect other services
//by using lifecycle hook I am getting data but another method is not working on signing
ngDoCheck() {
this.FetchUsersInQueue(this.commonService.getUser());
}
onSignin() {
this.serverService....
2
votes
2
answers
664
views
Angular template rendering non-encoded URL
How do I render a URL which is not encoded. Below is a sample
import { Component } from '@angular/core';
import { Router } from '@angular/router';
@Component({
selector: 'demo-app',
template: `&...
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 ...
1
vote
0
answers
100
views
angular5 - block assets if opened in new tab directly, outside the application
Angular-5: I have configured .angular-cli.Json file as per below link, I want to use assets like images, JSON, js in my project, when I open the assets path in new tab I don't want to display the ...
0
votes
1
answer
683
views
Breadcrumbs css issue in angular 2
I am facing issue in breadcrumbs. We have attrbute for menu items like
expanded?: boolean;
disabled?: boolean;
visible?: boolean;
badgeStyleClass?: string;
style?:any;
styleClass?:string;
But ...
0
votes
1
answer
79
views
not able to send the data from one module component to another module component
I would like to send the boolean value to true to another module component where I shall set the *ngIf value to true to enable the html content. It's navigating to the another component, but not able ...
1
vote
1
answer
10k
views
Subscribe method get call multiple times Angular 5
I have one method subscribed in ngOnInit of controller.ts. From the view, there is an option to select the different user from listing which redirects to the same page just ID from URL gets changed. ...
0
votes
2
answers
1k
views
How to show components in the content area of home component instead of separate page in Angular 5
I am new to Angular 5 ,Here I am facing a problem with component routing .
What I want to do is ,When a user open the app first it should show a login screen (login screen with full height and width ...
5
votes
1
answer
6k
views
How to show login Component when app loads first instead of appComponent in Angular 5
I am totally new to Angular 5 ,I want to show the login page when the app is open .
Now I am showing appComponent and it has toolbar and side navigation bar.But when the user load the app I want to ...
3
votes
1
answer
10k
views
Which is the preferable way to add a floating button in an Angular (5) application?
I'm building an application in Angular 5 with 3 main screens which we can navigate using tabs. I used Angular routing for switching between these 3 views and added separate components for each of ...