cgross / generator-cg-angular

Yeoman generator for Enterprise Angular projects.
MIT License
592 stars 198 forks source link

grunt build issues: pkg.name issue #67

Closed adnasa closed 10 years ago

adnasa commented 10 years ago

Hello, This issue is a continuation of the previously reported issue of grunt build

Problem Here is the problem I've found regarding grunt build.

This results in unmatching names of ng-modules. In my case I have "unicorn-beacon" as my project name in package.json and "unicornBeacon" as my application ng-module name.

attachment 1: attachment 1

Solution

Related issue grunt build issue

Patch coming up

adnasa commented 10 years ago

Resulting accurate $templateCache output by this fix:

angular.module("unicornBeacon").run(["$templateCache", function (a) {
    "use strict";
    a.put("partial/hello/hello.html", "<div class=col-md-12 ng-controller=HelloCtrl></div>")
}])
cgross commented 10 years ago

Fixed in 3.2.