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 have this in my .routing.ts file  export const routing = RouterModule.forChild([ {     path: 'page/:id',     component: PageComponent }]);   My PageComponent file checks the id parameter and loads the data accordingly.  In previous versio...
In my routable component I have   @RouteConfig {   {path: '/login',   name: 'Login', component: LoginComponent} }     But how do I get the query params if I go to app_url/login?token=1234?...
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....
Angular2 app is loading slow, how can I improve the performance on load?  I use Angular2, typescript with html5.  currently my app takes 4 seconds to load. I host with Firebase and use cloudflare.  Things I'm doing / info:   I've compressed i...
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.