After upgrading to AngularJS 1.3.0 this does not work at all. The "controller as" syntax is completely broken (when used in this fashion). We define a form on the page with ng-submit:
You can simply use LoginController in place of the giant arrow function.
您可以简单地使用LoginController代替巨箭头功能。
See this comment in the issue you linked about how returning an object is incorrect; the function needs to be something that works when the new operator is used on it.