Closed ameagol closed 5 years ago
Have you tried using the remote module instead?
There’s a function on it called getGlobal(string) where the string is a variable in your main process.
FYI: I have not experimented with this method.
I have not tried that, no.
@walkingriver the code listing above is wrong. in the main, you've to do window.webContents.send
in order to send a message
see https://electronjs.org/docs/api/web-contents#contentssendchannel-arg1-arg2- for further instructions
Feel free to re-open the issue if the problem still exists
Hi, I've already tested the ping/pong with success, but I have to trigger from main.js (MENU), then click in a button associated with the method playPingPong() .
Please let me know if is possible to transmit a variable, directly from main.js to Angular like:
main.js => angular component
My Idea would be like below, but is not receiveing anything from angular.
main.js
service.ts