fix(gen): switch ctrlAs name to a cameledName · yeoman/generator-angular@b0809c0

This repository was archived by the owner on Mar 26, 2018. It is now read-only.

File tree

1 file changed

lines changed

1 file changed

lines changed

Original file line numberDiff line numberDiff line change

@@ -61,7 +61,7 @@ Generator.prototype.rewriteAppJs = function () {

6161

splicable: [

6262

" templateUrl: 'views/" + this.name.toLowerCase() + ".html'" + (coffee ? "" : "," ),

6363

" controller: '" + this.classedName + "Ctrl'" + (coffee ? "" : ","),

64-

" controllerAs: '" + this.classedName + "'"

64+

" controllerAs: '" + this.cameledName + "'"

6565

]

6666

};

6767