diff options
author | 杨宇千 <crupest@outlook.com> | 2019-03-11 19:52:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-11 19:52:29 +0800 |
commit | 6f02dc7094d1304501e7ffd6c39ecf89369202c7 (patch) | |
tree | d031e2d14933574de04c892accb59560bdbea395 /Timeline/ClientApp/src/app/app.component.ts | |
parent | 028af6f786ac2664d301614d57bbff053c3dc9c0 (diff) | |
parent | 5d1d884635713278a792f99bb32cbe6d7471b0df (diff) | |
download | timeline-6f02dc7094d1304501e7ffd6c39ecf89369202c7.tar.gz timeline-6f02dc7094d1304501e7ffd6c39ecf89369202c7.tar.bz2 timeline-6f02dc7094d1304501e7ffd6c39ecf89369202c7.zip |
Merge pull request #11 from crupest/7-user-route
Use named route in 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 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(); } } |