import { Component , ViewRef } from '@angular/core' ; import { HsCompositionsService } from '../compositions.service' ; import { HsDialogComponent } from '../../layout/dialogs/dialog-component.interface' ; import { HsDialogContainerService } from '../../layout/dialogs/dialog-container.service' ; @ Component ( { selector : 'hs-compositions-info-dialog' , templateUrl : './dialog_info.html' , } ) export class HsCompositionsInfoDialogComponent implements HsDialogComponent { viewRef : ViewRef ; data : any ; constructor ( public HsDialogContainerService , public HsCompositionsService ) { } close ( ) { console . log ( this . data ) ; this . HsDialogContainerService . destroy ( this ) ; } }