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 25 26 27 28 29 30 31 32 | 2x 2x 5x 1x 1x 1x 1x | import { CommonModule } from '@angular/common';
import {
ChangeDetectionStrategy,
Component,
OnInit,
inject
} from '@angular/core';
import { AppVersionInfo } from '@reflex/shared-types';
import { Observable } from 'rxjs';
import { VersionInfoService } from 'src/shared/services/version.service';
@Component({
selector: 'app-home',
templateUrl: './home.component.html',
changeDetection: ChangeDetectionStrategy.Eager,
imports: [CommonModule]
})
export class HomeComponent implements OnInit {
public serverLibs?: Observable<Array<AppVersionInfo>>;
public clientLibs?: Observable<Array<AppVersionInfo>>;
public appVersion?: Observable<AppVersionInfo>;
private readonly versionService = inject(VersionInfoService);
public ngOnInit(): void {
this.serverLibs = this.versionService.getServerVersionInfo();
this.clientLibs = this.versionService.getClientVersionInfo();
this.appVersion = this.versionService.getAppVersionInfo();
}
}
|