Skip to main content

All 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, ...
school of thought's user avatar
-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 = ...
sajesh Nambiar's user avatar
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 ...
Paul Erdos's user avatar
  • 1,375
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 ...
Anurag Ranjan's user avatar
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
Gopal Meena's user avatar
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....
Gopal Meena's user avatar
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: `&...
Sampat's user avatar
  • 1,311
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
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 ...
Vinay Reddy's user avatar
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 ...
SRANSV's user avatar
  • 191
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 ...
Pradeep's user avatar
  • 75
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. ...
A. A.'s user avatar
  • 143
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 ...
Zhu's user avatar
  • 3,801
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 ...
Zhu's user avatar
  • 3,801
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 ...
beta programmers's user avatar

15 30 50 per page
1
2 3 4 5 6