News for hackers. Stuff that matters.
Re:Little-known directives of Angular.js by kurtfunai on Wednesday November 06, 2013 @11:27AM (#6683493)
Thanks for the post - I regularly use a lot of these, and I'm a big fan of ng-bind attribute over the <div>{{ thing }}</div> approach.

Things that really caught my eye:

- ng-list: sounds very useful for user forms, tagging, etc

- ng-switch: I dont know how many times I've used ng-show to replicate this functionality. Thank you!

Re:Little-known directives of Angular.js by mmorris on Wednesday November 06, 2013 @02:34PM (#6684902)
Just to be clear (and as mentioned in a comment on the post), ng-switch is actually closer in functionality to using multiple ng-if directives (which is only in Angular 1.1.5+). ng-switch actually adds/removes the elements from the DOM, whereas ng-show just shows/hides the element.
Re:Little-known directives of Angular.js by Rodeoclash on Wednesday November 06, 2013 @04:42PM (#6685710)
It also creates an additional scope whereas the ng:show does not.
Re:Little-known directives of Angular.js by d4vlx on Wednesday November 06, 2013 @01:24PM (#6684343)
Not that I can really take much credit but you're welcome :)