You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm a little bit confused by a simple test I've made and it seems like Angular doesn't render changes on the screen. I have made a simple code to show.
On home.component.ts
loaded=false;ngOnInit(){this.electron.ipcRenderer.send('started',true);this.electron.ipcRenderer.on('loaded',(e)=>{console.log('received "loaded" from main');this.loaded=true;window.setTimeout(()=>console.log(this.loaded),2000);});}
ipcMain.on('started',(e)=>{console.log('received "started" from window');setTimeout(()=>{console.log('few seconds later, sendind loaded to window');win.send('loaded',":D");},3000);});
Even when checking the logs, everything seems to work out great:
node console:
dev tools console:
Yet, what I get on screen is the "loading..." text and it does not refresh.
Am I doing something wrong?
Thanks in advance!
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I'm a little bit confused by a simple test I've made and it seems like Angular doesn't render changes on the screen. I have made a simple code to show.
On home.component.ts
home.component.html
main.ts (inside createWindow function)
Even when checking the logs, everything seems to work out great:
node console:
dev tools console:
Yet, what I get on screen is the "loading..." text and it does not refresh.
Am I doing something wrong?
Thanks in advance!
The text was updated successfully, but these errors were encountered: