Skip to content

Instantly share code, notes, and snippets.

@voor
Created April 21, 2015 17:22
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save voor/c6aa0f32a3aa0abda47b to your computer and use it in GitHub Desktop.
Save voor/c6aa0f32a3aa0abda47b to your computer and use it in GitHub Desktop.
module.exports = angular.module('com.good.company.directive', []);
angular.module('com.good.company.directive')
.directive('myDirective', [
// directive definition ...
]);
module.exports = angular.module('com.good.company', [
require('./directive').name
]);
@voor
Copy link
Author

voor commented Apr 21, 2015

By placing each of the angular modules into module.exports you are able to independently reference them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment