In ES6, I want to use this sample code in angular 1.6 code.
var win = nw.Window.get();
win.on('new-win-policy', function(frame, url, policy){
policy.forceNewWindow();
});
These are the steps I did,(updated package.json)
npm install nwjs
in code,
import nw from 'nwjs'; //I guess this is not correct
please help what am I doing wrong.