Skip to content

Commit

Permalink
Merge pull request #44 from alexilyaev/patch-1
Browse files Browse the repository at this point in the history
Add CommonJS package manager support (closes #43)
  • Loading branch information
rpocklin committed Sep 28, 2015
2 parents 76008dd + 0aaddd4 commit 86a0c28
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
"jQuery": false,
"Backbone": false,
"_": false,
"document": false
"document": false,
"module": false,
"exports": false
}
}
5 changes: 5 additions & 0 deletions src/ui-router-tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
*
*/

// Common.js package manager support (e.g. ComponentJS, WebPack)
if (typeof module !== 'undefined' && typeof exports !== 'undefined' && module.exports === exports) {
module.exports = 'ui.router.tabs';
}

angular.module('ui.router.tabs', []);
angular.module('ui.router.tabs').directive(
'tabs', ['$rootScope', '$state', function($rootScope, $state) {
Expand Down

0 comments on commit 86a0c28

Please sign in to comment.