UNPKG

tfabrica

Version:

library for TFabrica - TechSol

30 lines (21 loc) 746 B
import { Component, ViewChild, OnInit } from '@angular/core'; import { MdDialog, MdDialogRef } from '@angular/material'; import { TfabricaSharedService } from './tfabrica.shared.service'; import { TfabricaMessage } from '../models/tfabrica.message.model'; @Component({ selector: 't-message', template: require('./tfabrica.message.dialog.component.html') }) export class TfabricaMessageDialogComponent implements OnInit { public message: TfabricaMessage; constructor( public dialogRef: MdDialogRef<TfabricaMessageDialogComponent> ) { this.message = this.dialogRef.config.data; } ngOnInit() { } public close() { this.dialogRef.close(null); } }