import { Component , OnInit , Input , Inject } from '@angular/core' ; import { MatDialogRef , MAT_DIALOG_DATA } from '@angular/material' ; @ Component ( { selector : 'app-qr-display' , templateUrl : './qr-display.component.html' , styleUrls : [ './qr-display.component.css' ] } ) export class QrDisplayComponent implements OnInit { constructor ( @ Inject ( MAT_DIALOG_DATA ) public data , public dialogRef ) { } ngOnInit ( ) { } }