Angular 2 - How to navigate to another route using this.router.parent.navigate('/about').  It doesnt seem to work. I tried location.go("/about"); as that didnt work.  basically once a user has logged in I want to redirect them to an...
I'm making a real estate website using angular 2, google maps, etc. and when a user changes the center of the map I perform a search to the api indicating the current position of the map as well as the radius. The thing is, I want to reflect th...
I  would like to create an external redirect, but to make all routes consistent I think it would be nice to do everything(including external redirects) under Router States configuration.  so:  const appRoutes: Routes = [   {path: '', compon...
I am working on this angular2 project in which I am using ROUTER_DIRECTIVES to navigate from one component to other.  There are 2 components. i.e. PagesComponent & DesignerComponent.  I want to navigate from PagesComponent to DesignerComponent....
I'm trying to create an application with hash location strategy, but it does not add the hash to the url. For instance when I click on a button associated with { path: '/polls', name: 'Polls', component: PollsComponent } it loads...
I have a problem. I don't know how to send object from one component to another.  In first component cinema.component.html I have following function call:  <a title="Reserve" (click)="openReservationPage(repertoire)">Reserve...
I found these answers here, but they did not help me. I guess Angular 2 is still in flux?   No provider for RouterOutletMap  Getting Angular2 error 'No provider for Router! (RouterOutlet -> Router)'  My app.routing.ts  import { ModuleWit...
Im having problems trying to get query params using the new Route library.  VERSION 2.0.0-rc.1  Problem  routerOnActivate(curr:RouteSegment, prev?:RouteSegment, currTree?:RouteTree, prevTree?:RouteTree):void {   console.log(curr.getParam("test...
How can we set the route so that sitemap can be access through URL :  < domain_name >/sitemap.xml   My app routing module is kind of like this :-  export function getHomeModule() {   return System.import('./+home/home.module' + (process...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.