diff options
author | crupest <crupest@outlook.com> | 2019-03-13 22:04:09 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-03-13 22:04:09 +0800 |
commit | 29716c4681f0e016e5f25291e95a143ade39faee (patch) | |
tree | 862047f5836d4dd8be87f7fb93e16f3d7739d499 /Timeline/ClientApp/src/app/app.component.ts | |
parent | 435c2b4e68c06bc2d03b209a3dba0b8918f3bf8c (diff) | |
download | timeline-29716c4681f0e016e5f25291e95a143ade39faee.tar.gz timeline-29716c4681f0e016e5f25291e95a143ade39faee.tar.bz2 timeline-29716c4681f0e016e5f25291e95a143ade39faee.zip |
Use route to control user dialog.
Diffstat (limited to 'Timeline/ClientApp/src/app/app.component.ts')
-rw-r--r-- | Timeline/ClientApp/src/app/app.component.ts | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Timeline/ClientApp/src/app/app.component.ts b/Timeline/ClientApp/src/app/app.component.ts index ee02f833..33f33048 100644 --- a/Timeline/ClientApp/src/app/app.component.ts +++ b/Timeline/ClientApp/src/app/app.component.ts @@ -1,4 +1,5 @@ import { Component } from '@angular/core'; + import { UserService } from './user/user.service'; @Component({ @@ -7,10 +8,6 @@ import { UserService } from './user/user.service'; styleUrls: ['./app.component.css'] }) export class AppComponent { - - constructor(private userService: UserService) { } - - openUserDialog() { - this.userService.openUserDialog(); - } + // never remove userService because we need it explicit constructing. + constructor(userService: UserService) { } } |