diff options
author | 杨宇千 <crupest@outlook.com> | 2019-03-14 16:51:46 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-14 16:51:46 +0800 |
commit | 19a12661e981718aebc418624c602b852e68d54d (patch) | |
tree | bc467184f38d9ea2962f860af889e002320e22e8 /Timeline/ClientApp/src/app/app.component.ts | |
parent | 988e07fce184b72c35020e4bde4079bdd305fb7c (diff) | |
parent | 780afcc14029d966f74fc8688aa040183ac23476 (diff) | |
download | timeline-19a12661e981718aebc418624c602b852e68d54d.tar.gz timeline-19a12661e981718aebc418624c602b852e68d54d.tar.bz2 timeline-19a12661e981718aebc418624c602b852e68d54d.zip |
Merge pull request #13 from crupest/auth-guard
Add auth guard.
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) { } } |