diff options
author | crupest <crupest@outlook.com> | 2019-03-04 16:30:44 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-03-04 16:30:44 +0800 |
commit | 0231d74f07d6b7908ec4728d58057688f0a73c0f (patch) | |
tree | 03504a1e866d1f5520688e02a1296d7c8e94fdf9 /Timeline/ClientApp/src/app/app.component.ts | |
parent | d55648859a53dce157939d96a20bd5725b3a1fae (diff) | |
download | timeline-0231d74f07d6b7908ec4728d58057688f0a73c0f.tar.gz timeline-0231d74f07d6b7908ec4728d58057688f0a73c0f.tar.bz2 timeline-0231d74f07d6b7908ec4728d58057688f0a73c0f.zip |
Develop some basic parts of auth.
Diffstat (limited to 'Timeline/ClientApp/src/app/app.component.ts')
-rw-r--r-- | Timeline/ClientApp/src/app/app.component.ts | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Timeline/ClientApp/src/app/app.component.ts b/Timeline/ClientApp/src/app/app.component.ts index bba1f59d..58fe7cac 100644 --- a/Timeline/ClientApp/src/app/app.component.ts +++ b/Timeline/ClientApp/src/app/app.component.ts @@ -1,4 +1,6 @@ import { Component } from '@angular/core'; +import { MatDialog } from '@angular/material'; +import { UserDialogComponent } from './user-dialog/user-dialog.component'; @Component({ selector: 'app-root', @@ -6,7 +8,12 @@ import { Component } from '@angular/core'; styleUrls: ['./app.component.css'] }) export class AppComponent { - title = 'app'; - public isCollapse = false; + constructor(private dialog: MatDialog) { } + + openUserDialog() { + this.dialog.open(UserDialogComponent, { + width: '250px' + }); + } } |