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 - Routing - CanActivate work with Observable

I have an AuthGuard (used for routing) that implements CanActivate. canActivate() { return this.loginService.isLoggedIn(); } My problem is, that the …

angular angular2-routing angular2-http
"Error: No provider for router" while writing Karma-Jasmine unit test cases

We have done one angular2 project set up and inside that created one module (my-module) and inside that module created …

unit-testing angular karma-jasmine angular2-routing angular-cli
How to route to a Module as a child of a Module - Angular 2 RC 5

I am in the process upgrading an application I'm working on to the latest Angular 2 release candidate. As part of …

angular angular2-routing angular2-modules angular2-router3
Angular2 Routerlink: add query parameters

How can I add query parameters to routerLink? @RouteConfig { {path: '/search', name: 'Search', component: SearchCmp} } Let' say I want …

angular angular2-routing
Angular2 router.navigate refresh page

This is how the routes and component look like: routes.config export const routes: RouterConfig = [ { path: 'users', component: UsersComponent, canActivate: […

angular angular2-routing
How do I detect user navigating back in Angular2?

I have a component and I need to detect if user pressed back button in his browser to navigate back. …

angular typescript angular2-routing
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
How to unit test a component that depends on parameters from ActivatedRoute?

I am unit testing a component that is used to edit an object. The object has an unique id that …

unit-testing angular angular2-routing angular2-testing
Lazy Loading BrowserModule has already been loaded

I am trying to implement lazy loading but getting error as following ** ERROR Error: Uncaught (in promise): Error: BrowserModule has …

angular typescript angular2-routing lazy-loading angular2-modules
Navigate relative with Angular 2 Router (Version 3)

How to navigate relative from /questions/123/step1 to /questions/123/step2 within a component using Router without string concatenation and specifying /…

angular typescript angular2-routing