Skip to content

Commit d5c1a48

Browse files
author
Sharma
committed
Fixed the blank screen issue in embedded
1 parent cb5bc25 commit d5c1a48

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/app/_samples/embedded/embedded.component.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, OnInit, OnDestroy } from '@angular/core';
1+
import { Component, OnInit, OnDestroy, NgZone } from '@angular/core';
22
import { CommonModule } from '@angular/common';
33
import { MatButtonModule } from '@angular/material/button';
44
import { MatIconModule } from '@angular/material/icon';
@@ -38,7 +38,10 @@ export class EmbeddedComponent implements OnInit, OnDestroy {
3838

3939
bootstrapShell: any;
4040

41-
constructor(private psservice: ProgressSpinnerService) {}
41+
constructor(
42+
private psservice: ProgressSpinnerService,
43+
private ngZone: NgZone
44+
) {}
4245

4346
ngOnInit() {
4447
this.initialize();
@@ -102,6 +105,10 @@ export class EmbeddedComponent implements OnInit, OnDestroy {
102105

103106
this.pConn$ = props.getPConnect();
104107

108+
this.ngZone.run(() => {
109+
this.bHasPConnect$ = true;
110+
});
111+
105112
this.bHasPConnect$ = true;
106113

107114
this.showHideProgress(false);

0 commit comments

Comments
 (0)