blob: 0e2a9799bdee1e3929496fedb1b5711b49e426b6 (
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/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'
});
}
}
|