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 3x 3x 1x | import { ChangeDetectionStrategy, Component, inject, OnInit } from '@angular/core';
import { httpApiAction, httpApiSelector, IHttpApiState } from '@app/client-store-http-api';
import { Store } from '@ngrx/store';
@Component({
selector: 'app-diagnostics-info',
templateUrl: './diagnostics-info.component.html',
styleUrls: ['./diagnostics-info.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: false,
})
export class AppDiagnosticsInfoComponent implements OnInit {
private readonly store = inject(Store<IHttpApiState>);
/**
* Ping result.
*/
public readonly ping$ = this.store.select(httpApiSelector.ping);
public ngOnInit(): void {
this.store.dispatch(httpApiAction.ping());
}
}
|