![]() This will create the application window for your app. When the app is ready, call the createWindow() function.Win.loadFile( 'dist/electron-app/index.html') The preferred method is to install Electron as a development dependency in your app: npm install electron -save-dev. In this file, initialize Electron so that you can use it to create the application window. 2021 UPDATE: I highly recommend using electron-react-boilerplate instead of the approach described in this post. To install prebuilt Electron binaries, use npm. ![]() Create a file in the root of your project named main.js.How to Use Electron to Open an Angular Application in a Desktop WindowĬreate the main.js file, and configure it to open the application's content inside a desktop window.
0 Comments
Leave a Reply. |