Skip to content

Commit

Permalink
add support for commonjs
Browse files Browse the repository at this point in the history
  • Loading branch information
ccicpgreen committed Apr 22, 2016
1 parent 27eae7a commit bf902c4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions checklist-model.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
* License: MIT http://opensource.org/licenses/MIT
*/

/* commonjs package manager support (eg componentjs) */
if (typeof module !== "undefined" && typeof exports !== "undefined" && module.exports === exports){
module.exports = 'checklist-model';
}

angular.module('checklist-model', [])
.directive('checklistModel', ['$parse', '$compile', function($parse, $compile) {
// contains
Expand Down

0 comments on commit bf902c4

Please sign in to comment.