import { Component , Inject , OnDestroy , ChangeDetectionStrategy , ChangeDetectorRef } from '@angular/core' ; import { Router } from '@angular/router' ; import { MAT_DIALOG_DATA } from '@angular/material' ; import { Store } from '@ngrx/store' ; import * as gameplayactions from '../../store/actions' ; import { GamePlayState } from '../../store' ; import { UserActions } from 'shared-library/core/store/actions' ; import { GameDialog } from './game-dialog' ; import { Utils } from 'shared-library/core/services' ; import { AutoUnsubscribe } from 'shared-library/shared/decorators' ; @ Component ( { selector : 'game-dialog' , templateUrl : './game-dialog.component.html' , styleUrls : [ './game-dialog.component.scss' ] , changeDetection : ChangeDetectionStrategy . OnPush } ) @ AutoUnsubscribe ( { 'arrayName' : 'subscriptions' } ) export class GameDialogComponent extends GameDialog implements OnDestroy { constructor ( public store , public router , public userActions , @ Inject ( MAT_DIALOG_DATA ) public data , public utils , public cd ) { super ( store , userActions , utils , cd , router ) ; } ngOnDestroy ( ) { this . destroy ( ) ; } }