ericclemmons / grunt-angular-templates

Grunt build task to concatenate & pre-load your AngularJS templates
MIT License
710 stars 107 forks source link

option standalone seems broken #131

Closed iJungleboy closed 8 years ago

iJungleboy commented 9 years ago

If i leave away standalone, it creates

 angular.module('tempCustomGpsTmplates',[]).run

If I add it and set to true like this

        editExt: {
            options: {
                module: "tempCustomGpsTmplates",//"eavCustomFields",
                standalone: true,
                append: true,
                htmlmin: configConstants.ngTemplatesHtmlMin
            },
            files: [
                 {
                     cwd: editExt.tmp,
                     src: ["**/*.html"], 
                     dest: editExt.templates
                 }
            ]
        }

, it actually adds

 angular.module('tempCustomGpsTmplates', [],[])

and setting it to false just does the same thing as leaving it out

  angular.module('tempCustomGpsTmplates',[])
iJungleboy commented 8 years ago

My bad! there is another plugin called grunt-ng-templates and I was using that. There this feature is broken. In this one grunt-angular-templates it works :) Awesome stuff - thanks!