blob: 1798d8f4fdd4dee683c7b10903cf13b122f17b1e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import { Component } from '@angular/core';
import { MatDialog } from '@angular/material';
import { UserDialogComponent } from './user-dialog/user-dialog.component';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
constructor(private dialog: MatDialog) { }
openUserDialog() {
this.dialog.open(UserDialogComponent, {
width: '300px'
});
}
}
|