import { Component } from "@angular/core" ; import { Router , ActivatedRoute } from "@angular/router" ; @ Component ( { selector : 'my-app' , templateUrl : './app.component.html' } ) export class AppComponent { constructor ( public router , private route ) { } }