import { Component , OnInit , Injector } from '@angular/core' ; import { DataService } from 'src/app/services/data.service' ; import { ClusterManifest } from 'src/app/Models/DataModels/Cluster' ; import { Observable } from 'rxjs' ; import { IResponseMessageHandler } from 'src/app/Common/ResponseMessageHandlers' ; import { BaseControllerDirective } from 'src/app/ViewModels/BaseController' ; @ Component ( { selector : 'app-manifest' , templateUrl : './manifest.component.html' , styleUrls : [ './manifest.component.scss' ] } ) export class ManifestComponent extends BaseControllerDirective { clusterManifest : ClusterManifest ; constructor ( private data , injector ) { super ( injector ) ; } setup ( ) { this . clusterManifest = this . data . clusterManifest ; } refresh ( messageHandler ? ) { return this . clusterManifest . refresh ( messageHandler ) ; } }