提问 (opens new window) constructor(private injector: Injector) {} this.injector.get(Router)
constructor(@inject(Router) private router: Router ) { }
constructor(private router: Router) { }
提问 (opens new window) constructor(private injector: Injector) {} this.injector.get(Router)
constructor(@inject(Router) private router: Router ) { }
constructor(private router: Router) { }