How to write more maintainable code with the angular.js controller as syntax · HackerTrans