Angular-cli doesn't accept the electron inside components. how to use electron browser window inside components in angular-cli? I got an error fs.existsync like this. Is there any other options to use electron with angular2 components?
var electron = require('electron');
or
import electron from 'electron';
You can only do this by initialize electron variables inside index.html and you can communicate wherever you want inside typescript. Use electron variables inside TS.
This will help you to communicate with electron in any of the script languages like angular2,react js, node js etc.,