aboutsummaryrefslogtreecommitdiff
path: root/Timeline/ClientApp/src/app/app.component.ts
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-03-06 23:29:12 +0800
committerGitHub <noreply@github.com>2019-03-06 23:29:12 +0800
commit4b37c96de2c7d3fe046a6f342d2da8ef03d3c807 (patch)
treee5618cddfa6f637d7033ae5b52e6da825eb53c63 /Timeline/ClientApp/src/app/app.component.ts
parentaca753fba19a221f1aec65030ba4aec4bc34f576 (diff)
parentb5e01c4571061cbaf5915aa4c0f1b7126ef1ed18 (diff)
downloadtimeline-4b37c96de2c7d3fe046a6f342d2da8ef03d3c807.tar.gz
timeline-4b37c96de2c7d3fe046a6f342d2da8ef03d3c807.tar.bz2
timeline-4b37c96de2c7d3fe046a6f342d2da8ef03d3c807.zip
Merge pull request #3 from crupest/user
Develop user dialog.
Diffstat (limited to 'Timeline/ClientApp/src/app/app.component.ts')
-rw-r--r--Timeline/ClientApp/src/app/app.component.ts11
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..0e2a9799 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/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: '300px'
+ });
+ }
}