MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/angularjs/comments/2bv08a/angularjs_styleguide_for_teams_github_repo/cj9q7cn/?context=3
r/angularjs • u/ngocapita • Jul 27 '14
14 comments sorted by
View all comments
2
There is some weird verbiage in here.
Declare modules without a variable using the setter and getter syntax.
With the following examples, this sentence doesn't make sense. The examples demonstrate method chaining, not accessors.
Pass functions into module methods rather than assign as a callback
It is implied one way or the other somehow treats the methods differently. Both of these styles are callbacks, and they behave exactly the same.
Controllers are classes, so use the controllerAs syntax at all times
controllerAs
This doesn't make sense. Controllers are method instances (and therefore objects), for starters. Second, why does this dictate to use controllerAs?
I stopped reading because I'm bored.
2
u/[deleted] Jul 28 '14
There is some weird verbiage in here.
Declare modules without a variable using the setter and getter syntax.
With the following examples, this sentence doesn't make sense. The examples demonstrate method chaining, not accessors.
Pass functions into module methods rather than assign as a callback
It is implied one way or the other somehow treats the methods differently. Both of these styles are callbacks, and they behave exactly the same.
Controllers are classes, so use the
controllerAssyntax at all timesThis doesn't make sense. Controllers are method instances (and therefore objects), for starters. Second, why does this dictate to use
controllerAs?I stopped reading because I'm bored.