Top "Angular2-routing" questions

Angular Routing is a built-in feature that enables you to create a Single Page Application (SPA) user interface, where users can navigate to different views without having to reload the entire page from the server every time.

Angular 2 get routeParams in a service

I want to shift the logic from component to service. But I found out that I can't get the routeParams …

angular angular2-routing angular2-services
Can you use @ViewChild() or similar with a router-outlet? How if so?

I repeatedly run into a situation where I'd like to access a child component existing on the other side of …

angular angular2-routing angular2-services
Angular 2: Prevent router from adding to history

We have a client that is iFraming in our app to their website. They don't want the router navigation within …

javascript angular iframe angular2-routing browser-history
Handle @Input and @Output for dynamically created Component in Angular 2

How to handle/provide @Input and @Output properties for dynamically created Components in Angular 2? The idea is to dynamically create (…

javascript angular angular2-routing angular2-template
Angular 2 - test for change in route params

I have a component in angular 2 which responds to changes in the route parameters (the component doesn't reload from scratch …

angular jasmine angular2-routing angular2-testing angular2-observables
Angular 2 resolver with loading indicator

I use resolvers to load the data into the components, but until the data is not returned from the server …

angular angular2-routing
Subscribing to ActivatedRoute Params in Angular 2 does not update view templates

I'm not sure why the change detection wouldn't work here. I've tried a few things, including a setTimeout. I'm using …

javascript angular angular2-routing angular2-changedetection
Angular 4 Component ngOnInit not called on each route request

I just recently started diving into Angular 4 coming from Angular 1.5. I'm working with user routes and pulling API data from …

angular angular2-routing angular2-components
Angular 2 routerLink params & query params

Here is my route: { path: 'market/:currency', component: MainlayoutComponent, canActivate: [AuthGuard]} I want redirect to with query params like this: …

angular typescript angular2-routing angular5 angular4-router
How to attach ngrx/store with an angular router guard

I'm a beginner with ngrx/store and this is my first project using it. I have successfully set up my …

angular angular2-routing ngrx ngrx-effects