import { Component , Inject , OnDestroy } from '@angular/core' ; import { MatDialogRef , MAT_DIALOG_DATA } from '@angular/material' ; import { Subscription } from 'rxjs' ; import { ProjectModel , RepositoriesModel } from '../../models/index.model' ; /**
 * Dialog list component
 */ @ Component ( { selector : 'dashboard-dialog-list' , templateUrl : './dialog-list.component.html' , styleUrls : [ './dialog-list.component.scss' ] , } ) export class DialogListComponent implements OnDestroy { private repositorySubscription : Subscription ; param dialogRef param data constructor ( public dialogRef , @ Inject ( MAT_DIALOG_DATA ) public data ) { } /**
     * Life cycle destroy method
     */ ngOnDestroy ( ) { if ( this . repositorySubscription ) { this . repositorySubscription . unsubscribe ( ) ; } } }