28 lines
639 B
TypeScript
28 lines
639 B
TypeScript
import { MdDialogRef } from '@angular/material';
|
|
import { MD_DIALOG_DATA } from '@angular/material';
|
|
import { Component, OnInit, Inject } from '@angular/core';
|
|
|
|
@Component({
|
|
selector: 'app-ok-popup',
|
|
templateUrl: './ok-popup.component.html',
|
|
styleUrls: ['./ok-popup.component.css']
|
|
})
|
|
export class OkPopupComponent implements OnInit {
|
|
|
|
public title: string;
|
|
public message: string;
|
|
|
|
constructor(@Inject(MD_DIALOG_DATA) public data: any, private mdDialogRef: MdDialogRef<OkPopupComponent>) {
|
|
this.title = data.title;
|
|
this.message = data.message;
|
|
}
|
|
|
|
ngOnInit() {
|
|
}
|
|
|
|
close(){
|
|
this.mdDialogRef.close();
|
|
}
|
|
|
|
}
|