import { Component , OnInit } from '@angular/core' ; import { DataService } from 'src/app/services/data.service' ; import { IEventStoreData } from 'src/app/modules/event-store/event-store/event-store.component' ; import { IOptionConfig } from 'src/app/modules/event-store/option-picker/option-picker.component' ; @ Component ( { selector : 'app-events' , templateUrl : './events.component.html' , styleUrls : [ './events.component.scss' ] } ) export class EventsComponent implements OnInit { listEventStoreData : IEventStoreData < any , any > [ ] ; optionsConfig : IOptionConfig ; constructor ( public data ) { } ngOnInit ( ) { this . listEventStoreData = [ this . data . getClusterEventData ( ) ] ; this . optionsConfig = { enableNodes : true , enableRepairTasks : true } ; } }