import { AfterViewInit , ChangeDetectionStrategy , ChangeDetectorRef , Component , OnInit } from '@angular/core' ; import { environment } from '@env/environment' ; @ Component ( { selector : 'app-about' , templateUrl : './about.component.html' , styleUrls : [ './about.component.scss' ] , changeDetection : ChangeDetectionStrategy . OnPush } ) export class AboutComponent implements OnInit , AfterViewInit { public version : string = '' ; public links : { } [ ] ; constructor ( private cdr ) { } ngOnInit ( ) { this . version = environment . appVersion ; this . links = environment . configPHP . generatedBy ; } ngAfterViewInit ( ) { this . cdr . detectChanges ( ) ; } }