back() {
   this._router.navigate(['Show', { id: this._routeParams.get('id') }])
 }
 isCurrentRoute(route){
      var instruction = this.router.generate(route);
      return this.router.isRouteActive(instruction);
  }
 .then((_) => rtr.config([new Route({path: '/...', component: LifecycleCmp})]))
 onSelectFactory(factory: Factory) {
    console.log('Selected factory code: ' + factory.code + ', factory name: ' + factory.name);
    this._router.navigate(['FactorySummary',  { code: factory.code } ]);
 }
 gotoServicesGroupDetail(servicesGroup: ServicesGroup){
     let link = ['ServicesGroupDetailsPage', { url: servicesGroup.url }];
     this._router.navigate(link);
 }
Exemple #6
0
 gotoCatalog(board: Board) {
 let link = ['Threads', { board_id: board.board_id }];
 this.router.navigate(link);
 }
Exemple #7
0
 signup(event) {
   event.preventDefault();
   this.router.navigateByUrl('/signup');
 }
 gotoDetail(hero: Hero){
     let link = ['HeroDetail',{id: hero.id}];
     this.router.navigate(link);
 }
Exemple #9
0
 private volver() {
   event.preventDefault();
 //  this.router.parent.navigateByUrl('/login');
   this.router.navigate(['Login']);
 }
 submit(query: string): void {
   this.router.navigate(['/Search', {query: query}]);
   this.search();
 }