import { Component , OnInit , Inject } from '@angular/core' ; import { MatDialog , MatDialogRef , MAT_DIALOG_DATA } from '@angular/material' ; @ Component ( { selector : 'app-line-item-modal' , templateUrl : './line-item-modal.component.html' , styleUrls : [ './line-item-modal.component.scss' ] } ) export class LineItemModalComponent implements OnInit { constructor ( public dialogRef , @ Inject ( MAT_DIALOG_DATA ) public data ) { } ngOnInit ( ) { } onNoClick ( ) { this . dialogRef . close ( ) ; } }