mirror of https://github.com/OpenVidu/openvidu.git
ov-components: move loading state update to ngAfterContentChecked lifecycle hook
parent
a64cf1d577
commit
6f97b9d8c2
|
@ -77,11 +77,11 @@ export class PreJoinComponent implements OnInit, OnDestroy {
|
||||||
this.subscribeToPrejoinDirectives();
|
this.subscribeToPrejoinDirectives();
|
||||||
await this.initializeDevices();
|
await this.initializeDevices();
|
||||||
this.windowSize = window.innerWidth;
|
this.windowSize = window.innerWidth;
|
||||||
this.isLoading = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ngAfterContentChecked(): void {
|
ngAfterContentChecked(): void {
|
||||||
this.changeDetector.detectChanges();
|
this.changeDetector.detectChanges();
|
||||||
|
this.isLoading = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
async ngOnDestroy() {
|
async ngOnDestroy() {
|
||||||
|
|
Loading…
Reference in New Issue