This is my guide for writing consistent AngularJS code.