Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var electron = require('electron');
- // Module to control application life.
- var app = electron.app;
- angular.module('YourApp', ['ngMaterial'])
- .controller('AppCtrl', function($scope) {
- $scope.exitApp = function() {
- console.log(app); // Undefined ..
- app.exit();
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement