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

Commit b0809c0

Browse files
committed
fix(gen): switch ctrlAs name to a cameledName
I think like the predefined `MainCtrl` the name in the `controllerAs` property should not forced to start with a capital. https://github.com/yeoman/generator-angular/blob/master/templates/javascript/app.js#L18
1 parent 3449274 commit b0809c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

route/index.js

+1-1
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

0 commit comments

Comments
 (0)