Saturday, October 3, 2015

AngularJS Best Practices - Style Guide

Looks like the place du-jour for THE AngularJS style guide is here:

https://github.com/johnpapa/angular-styleguide

The author, John Papa, also provides the HotTowel Yeoman generator, that implements this style-guide:

https://github.com/johnpapa/generator-hottowel

If you're a TypeScript aficionado, you may want to keep an eye on the following GitHub issue:

https://github.com/johnpapa/generator-hottowel/issues/90

In the meantime - checkout:


And all this came up, as I was looking, for some good explanation for the advice to use AngularJS’
“Controller as” syntax and to avoid $scope as much as possible.

https://github.com/johnpapa/angular-styleguide#style-y030

A really good explanation is also here:

http://toddmotto.com/digging-into-angulars-controller-as-syntax/

Labels: ,

1 Comments:

Blogger Melisa said...

In recent days Angular plays vital role to loading your site content in a fastest way, so it’s a required skill for everyone, thanks for sharing this useful information to our vision keep blogging.
Regards,
Angularjs training in chennai|Angularjs training center in Chennai

January 7, 2016 at 4:59 AM  

Post a Comment

Subscribe to Post Comments [Atom]

Links to this post:

Create a Link

<< Home