https://github.com/ccnokes/electron-ng2
Demo app running ng2 in electron in the simplest way possible (WIP)
https://github.com/ccnokes/electron-ng2
Last synced: 2 months ago
JSON representation
Demo app running ng2 in electron in the simplest way possible (WIP)
- Host: GitHub
- URL: https://github.com/ccnokes/electron-ng2
- Owner: ccnokes
- Created: 2016-08-19T18:50:12.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-19T19:07:38.000Z (almost 10 years ago)
- Last Synced: 2025-01-18T17:55:25.161Z (over 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# electron-ng2
Demo app running ng2 in electron in the simplest way possible.
Running Angular2 in Electron is different than the web. We don't need a module loader/bundler because node.js handles module loading for us, and because we'll compile our Electron app using `asar`, there won't be any overhead of all the `require`s because it'll already be concatenated into a flat file. All we need to do is compile TypeScript.
Angular2 sample app from: https://coryrylan.com/blog/introduction-to-angular-2-routing (a great tutorial to ng2 routing)
Basically we compile the TS and copy all other assets in `src` folder to an ignored `app` folder. This way we can maintain the 2 package.json layout required by `electron-builder` and other Electron tools. The package.json in the root dir is not distributed, and the one in `app` is.