import { Component , Input , AfterViewInit , OnDestroy , ChangeDetectorRef , ViewContainerRef , AfterContentInit , } from '@angular/core' ; import { Subscription } from 'rxjs' ; import { IFormat } from '../../../../controller/session/dependencies/timestamps/session.dependency.timestamps' ; import * as Toolkit from 'chipmunk.client.toolkit' ; @ Component ( { selector : 'app-views-measurement-format' , templateUrl : './template.html' , styleUrls : [ './styles.less' ] , } ) export class ViewMeasurementFormatComponent implements AfterViewInit , AfterContentInit , OnDestroy { @ Input ( ) format ! : IFormat ; private _subscriptions : { [ key ] : Subscription ; } = { } ; private _logger : Toolkit . Logger = new Toolkit . Logger ( 'ViewMeasurementFormatComponent' ) ; private _destroyed : boolean = false ; constructor ( private _cdRef , private _vcRef ) { } ngAfterContentInit ( ) { } ngAfterViewInit ( ) { } ngOnDestroy ( ) { Object . keys ( this . _subscriptions ) . forEach ( ( key ) => { this . _subscriptions [ key ] . unsubscribe ( ) ; } ) ; } }