import 'rxjs/add/operator/switchMap'; import { Component, OnInit, HostBinding } from '@angular/core'; import { Observable } from 'rxjs/Observable'; import { Router, ActivatedRoute, ParamMap } from '@angular/router'; @Component({ template: `

HEROES

"{{ project.name }}"

{{ project.id }}
` }) export class ProjectDetailComponent implements OnInit { constructor( private route: ActivatedRoute, private router: Router, ) {} ngOnInit() { debugger; // this.hero$ = this.route.paramMap // .switchMap((params: ParamMap) => // this.service.getHero(params.get('id'))); } }