Friday, March 6, 2015

Another Round of Applying a Style Guide (Todd Motto)

At ng-conf 2015, the keynote speakers mentioned another style guide <https://github.com/toddmotto/angularjs-styleguide> by Todd Motto that nicely extends on the previous style guide we used.

Most of the changes are simple, but one (route resolve) requires a little more explanation. See <http://www.johnpapa.net/route-resolve-and-controller-activate-in-angularjs/>.  This also, introduces another style guide by John Papa <https://github.com/johnpapa/angular-styleguide>.

One interesting thing that happens when one goes through the style guides, one learns something basic that for some reason you never thought about before.  One example is Function Hoisting as described in <http://www.w3schools.com/js/js_function_definition.asp>.

The result with these two style guide applied is at <http://jsfiddle.net/sckmkny/r19b5fvy/>.

No comments:

Post a Comment