javoire / browserify-ng-html2js

Browserify transform to compile html templates into angular template modules
MIT License
27 stars 17 forks source link

Make require angular optional #20

Closed cgmartin closed 9 years ago

cgmartin commented 9 years ago

Addresses #18 and #19 by making the recent change var angular = require('angular'); optional.

ngHtml2Js({      
  requireAngular: false // (default: false) optionally include `var angular = require('angular');` 
                        // Supported in Angular 1.3.14 and above if you bundle angular with browserify
})
javoire commented 9 years ago

Great!