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

Commit

Permalink
fix(gen): switch ctrlAs name to a cameledName
Browse files Browse the repository at this point in the history
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
  • Loading branch information
cebor committed May 14, 2015
1 parent 3449274 commit b0809c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion route/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Generator.prototype.rewriteAppJs = function () {
splicable: [
" templateUrl: 'views/" + this.name.toLowerCase() + ".html'" + (coffee ? "" : "," ),
" controller: '" + this.classedName + "Ctrl'" + (coffee ? "" : ","),
" controllerAs: '" + this.classedName + "'"
" controllerAs: '" + this.cameledName + "'"
]
};

Expand Down

0 comments on commit b0809c0

Please sign in to comment.