Top "Angular-routing" questions

The ngRoute module provides routing and deeplinking services and directives for AngularJS apps.

What is the difference between ActivatedRoute and ActivatedRouteSnapshot in Angular4

What is the difference between ActivatedRouteSnapshot and ActivatedRoute in Angular 4? It's my understanding that ActivatedRouteSnapshot is a child of ActivatedRoute, …

angular angular-routing angular2-router
Best method to set different layout for different pages in angular 4

I am new to angular 4. What I'm trying to achieve is to set different layout headers and footers for different …

angular angular-routing angular-template angular-router
Angular2 get ActivatedRoute url

I want to get the url which comes from this: this.router.navigate(./somepath, { relativeTo: this.route }) this.route is …

angular angular-routing
Getting Angular2 error 'No provider for Router! (RouterOutlet -> Router)'

I use Angular2 alpha39 and Babel to transpile the ES6 JS file. I'm not using typescript. I created a component …

angular-routing angular
angularjs 1.6.0 (latest now) routes not working

I was expecting to see this question on Stackoverflow but didn't. Apparently I'm the only one having this problem that …

angularjs angular-routing ngroute angularjs-ng-route angularjs-1.6
Multiple named router-outlet angular 2

I want to display different views by child routes. For Example I want my template to hold multiple router-outlet Version: @…

angular angular-routing
How to get Route data into App Component in Angular 2

I have defined some route data in my app routing module like below: const appRoutes:Routes = [ {path: '', component: LoginComponent, …

javascript angular angular-routing
How to prevent page refresh in angular 4

I want to prevent page refresh by everywhere. I tried the code below import { Component, OnInit } from '@angular/core'; …

javascript angular angular-routing
Ionic 4 - how to pass data between pages using navCtrl or Router service

In Ionic 3 you could use the second argument of the navController to pass data to the next page and retrieve …

angular ionic-framework angular-routing ionic4
Pass object as parameter in $state.go

I want to navigate to another state/screen and pass a simple json object to this next screen. I have …

angularjs ionic-framework angular-routing