Skip to content
This repository has been archived by the owner on Apr 13, 2021. It is now read-only.

Commit

Permalink
0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ozsay committed Jan 22, 2016
1 parent 7aca869 commit 47f226e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,24 @@ angular.module('myModule').controller('myCtrl', ['newName', function(moment) {
}]);
```

You can also register a module by function:

```js
angular.module('myModule').config(['remoteProvider', function(remoteProvider) {
remoteProvider.register('exec', function(remote) {
return remote.require('child_process').exec;
});
}]);
```

then use it

```js
angular.module('myModule').controller('myCtrl', ['exec', function(exec) {
exec('ls');
}]);
```

### process objects

electron process objects are available as angularjs constants.
Expand Down

0 comments on commit 47f226e

Please sign in to comment.