Electron and angularJS app architecture - SPA clone in two windows
Clash Royale CLAN TAG #URR8PPP Electron and angularJS app architecture - SPA clone in two windows In mainWindow of my application I have angularJS SPA. Everything is fine untill I create new window. In every window I need to loadURL which is path to HTML document like in mainWindow : mainWindow = new BrowserWindow({ width: 790, height: 580 }); mainWindow.loadURL(url.format({ pathname: path.join(__dirname, 'index.html'), // load - index.html angularjs dashboard slashes: true })); Problem is that since I have SPA in my mainWindow after I open new window I should load entire SPA to new window as well as in mainWindow and just redirect to correct (hidden) url so I would have some other content in this new one. I would need to load this entire SPA in order to have access to my SPA services, factories and directives which I need to use in new window. let createQuestionWindow = () => { questionWindow = new BrowserWindow({ width: 380, heigh...