import { ChangeDetectionStrategy , ChangeDetectorRef , Component , OnInit , } from '@angular/core' ; import { Session } from '../../../../services/session' ; import { MindsUser } from '../../../../interfaces/entities' ; @ Component ( { selector : 'm-settingsV2__profile' , templateUrl : './profile.component.html' , changeDetection : ChangeDetectionStrategy . OnPush , } ) export class SettingsV2ProfileComponent implements OnInit { user : MindsUser ; url : string ; constructor ( protected cd , private session ) { } ngOnInit ( ) { this . user = this . session . getLoggedInUser ( ) ; this . url = `/${ this . user . username }/` ; this . detectChanges ( ) ; } detectChanges ( ) { this . cd . markForCheck ( ) ; this . cd . detectChanges ( ) ; } }