mgechev / angularjs-style-guide

📚 Community-driven set of best practices for AngularJS application development

Home Page:https://mgechev.github.io/angularjs-style-guide/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add recommendation for using 'controller as' syntax

yanivefraim opened this issue · comments

There are plenty of reasons why you should prefer the use of 'controller as' syntax over regular 'controller'.
Two interesting posts about it are:

  1. http://toddmotto.com/digging-into-angulars-controller-as-syntax/
  2. http://teropa.info/blog/2014/10/24/how-ive-improved-my-angular-apps-by-banning-ng-controller.html

I will be more than glad to add a PR for a section like this!

Yes, it makes sense.
PRs are welcome!

Awesome, I'm on it

PR merged