import { Component, Input } from '@angular/core'; import { Store } from '@ngrx/store'; import { DashboardActions } from '@onepoint-yap/dashboard'; @Component({ selector: 'yap-clear-view', templateUrl: './clear-view.component.html' }) export class ClearViewComponent { @Input() label = true; constructor(private store: Store) {} clear() { this.store.dispatch(DashboardActions.clearManifest()); } }