jgrenon/angular-desktop-app — pull request #6 by talss89 (2014-02-02 16:27:24+00:00)
Title: Basic node-webkit service

Exposes ```nw.gui``` and main window.

## Example

```js
define(['./module'], function(controllers) {
'use strict';

controllers.controller('MyCtrl', ['$scope', 'nwService', function($scope, nwService) {

// Minimize the main window
nwService.window.minimize();

// After 1 second, maximize the window
setTimeout(function(){nwService.window.maximize();}, 1000);

// When the window is closed, ask for confirmation before actually closing
nwService.window.on('close', function() {
if (confirm("Do you really want to close the window?"))
nwService.window.close(true);
});

}]);
});
```