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.

In angular 2 how to preserve query params and add additional query params to route

For example I am on route /cars?type=coupe and I want to navigate to the same endpoint with additional …

javascript angular angular2-routing query-parameters
Angular 2.0.2: ActivatedRoute is empty in a Service

I want to use ActivatedRoute to get route params in a service like I would do in a Component. However, …

angular angular2-routing
Angular: How to get component instance of router-outlet

html: <router-outlet></router-outlet> component: @Component({ selector: 'xx', templateUrl: './xx.html', styleUrls: ['./xx.css'], providers: [ …

angular angular-ui-router angular2-routing angular-routing
Angular 2 routerLinkActive always active for base path

I have this code for my navbar: <nav> <a [routerLink]="['/']" [routerLinkActive]="['nav-active']">HOME</…

angular angular2-routing
Angular 2 Routes not working while navigating through browser URL

I have some problems with routes for an Angular project, mainly with the third level of child routes. The routes …

angular typescript angular2-routing angular2-router3
Change a single route parameter on the current route in Angular 2

Is it possible to change a single route parameter in the current route, while keeping all the other parameters? This …

angular angular2-routing angular-routing
Multiple components per route in angular

What I want to do is, I want to load the home component and sidebar component at the same time. …

angular angular2-routing angular4-router
Angular 2 add routerLink in child which points to root router

Currently I am developing a web app using Angular 2 Beta 8. Now I am facing a problem with nested routes when …

javascript routing angular router angular2-routing
Cannot match any routes with child routes and new angular 2 RC1 router

ApplicationComponent import { Component } from '@angular/core'; import {Router, ROUTER_DIRECTIVES, Routes, ROUTER_PROVIDERS} from '@angular/router'; import {SchoolyearsComponent} …

typescript angular angular2-routing angular2-router
Angular2 RC5 Mock Activated Route Params

I need to be able to mock the activated route parameters to be able to test my component. Here's my …

angular typescript angular2-routing angular2-testing