6 ms·
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 caugh
by kurtfunai 13y ago
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!
- d4vlx 13y agoNot that I can really take much credit but you're welcome :)
- mmorris 13y agoJust 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.
- Rodeoclash 13y agoIt also creates an additional scope whereas the ng:show does not.