Top "Angular2-router" questions

Angular: append query parameters to URL

Im using this: import { HttpParams } from '@angular/common/http'; let params = new HttpParams(); params.append('newOrdNum','123'); But …

angular angular2-routing query-parameters angular2-router
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
How do I navigate to a sibling route?

Let's presume I got this router config export const EmployeeRoutes = [ { path: 'sales', component: SalesComponent }, { path: 'contacts', component: ContactsComponent } ]; and have …

angular angular2-routing angular2-router
Get current route without parameters

I need to get my current route without params in Angular 2, I found a way to get the current route …

angular url angular2-routing angular2-router
Do I have to unsubscribe from ActivatedRoute (e.g. params) observables?

I find many examples where ActivatedRoute Observables like params or url are subscribed but not unsubscribed. constructor(private route: ActivatedRoute) {} …

angular typescript angular2-router3 angular2-router
Angular2 Router: Cannot find primary outlet to load 'HomeComponent'

tried to switch to new Router as in version "@angular/router": "3.0.0-beta.2" in combination with "@angular/*": "2.0.0-rc.4", following the official …

angular angular2-router angular2-router3
Angular 2: How to conditionally load a Component in a Route asynchronously?

I'd like to attach a component to a route asynchronously, given a condition. The following example, which works (but is …

angular typescript angular2-router
Angular2 Router: Error: Cannot find primary outlet to load 'InboxComponent'

I created a simple app with routing. Links "http:// localhost:4200" and "http:// localhost:4200/mail" work well, but when I try …

angular typescript angular2-routing angular2-router
Using regex for path value of routes in angular2

I want to configure route for my angular2 application. My URL needs to be like this: http://domain_name/constant_…

angular angular2-routing angular2-router routeconfig
Angular2 router, get route data from url, to display breadcrumbs

I am using angular2 router. To draw the breadcrumb of an url, lets say site.com/a/b/c/15 I …

angular angular2-routing angular2-router