diff options
author | crupest <crupest@outlook.com> | 2019-03-09 21:36:55 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-03-09 21:36:55 +0800 |
commit | 14a799cc17f16ab93ee652bd9a2973c60cb3697c (patch) | |
tree | 9c34cb2354dd7fb90994c3659ae592f6b616c898 /Timeline/ClientApp/src/app/app.component.ts | |
parent | f65ac5d592e4e449dd513ad01cfd2b980324f240 (diff) | |
download | timeline-14a799cc17f16ab93ee652bd9a2973c60cb3697c.tar.gz timeline-14a799cc17f16ab93ee652bd9a2973c60cb3697c.tar.bz2 timeline-14a799cc17f16ab93ee652bd9a2973c60cb3697c.zip |
Seperate internal and public user service.
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 0e2a9799..ee02f833 100644 --- a/Timeline/ClientApp/src/app/app.component.ts +++ b/Timeline/ClientApp/src/app/app.component.ts @@ -1,6 +1,5 @@ import { Component } from '@angular/core'; -import { MatDialog } from '@angular/material'; -import { UserDialogComponent } from './user/user-dialog/user-dialog.component'; +import { UserService } from './user/user.service'; @Component({ selector: 'app-root', @@ -9,11 +8,9 @@ import { UserDialogComponent } from './user/user-dialog/user-dialog.component'; }) export class AppComponent { - constructor(private dialog: MatDialog) { } + constructor(private userService: UserService) { } openUserDialog() { - this.dialog.open(UserDialogComponent, { - width: '300px' - }); + this.userService.openUserDialog(); } } |