import { Component , Inject } from '@angular/core' ; import { MAT_DIALOG_DATA , MatDialogRef } from '@angular/material/dialog' ; import { MangolLayer } from '../../../../classes/Layer' ; import { LayerDetailItem } from '../../interfaces/layer-detail-item.interface' ; @ Component ( { selector : 'mangol-layer-details' , templateUrl : './layer-details.component.html' , styleUrls : [ './layer-details.component.scss' ] } ) export class LayerDetailsComponent { item : LayerDetailItem ; layer : MangolLayer ; constructor ( _dialogRef , @ Inject ( MAT_DIALOG_DATA ) public data ) { this . item = data . item ; this . layer = data . layer ; } }