Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | 1x 2x 2x 2x 3x | import { ChangeDetectionStrategy, Component, inject, OnDestroy, OnInit } from '@angular/core';
import { diagnosticsAction, IDiagnosticsState } from '@app/client-store-diagnostics';
import { Store } from '@ngrx/store';
@Component({
selector: 'app-diagnostics-index',
templateUrl: './diagnostics-index.component.html',
styleUrls: ['./diagnostics-index.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: false,
})
export class AppDiagnosticsIndexComponent implements OnInit, OnDestroy {
private readonly store = inject(Store<IDiagnosticsState>);
public ngOnInit(): void {
this.store.dispatch(diagnosticsAction.staticData());
this.store.dispatch(diagnosticsAction.startEvents());
}
public ngOnDestroy(): void {
this.store.dispatch(diagnosticsAction.stopEvents());
}
}
|