Skip to content

Commit

Permalink
Merge pull request #132 from phillipgreenii/master
Browse files Browse the repository at this point in the history
add support for commonjs
  • Loading branch information
beradrian committed May 10, 2016
2 parents d18fed3 + bf902c4 commit d494dd4
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 d494dd4

Please sign in to comment.