Little-known directives of Angular.js
codetunes.com
Little-known directives of Angular.js
1–10 of 24 posts
Re: Little-known directives of Angular.js
#2Well, I didn't even know about ng-cloak
Re: Little-known directives of Angular.js
#3Well, I didn't even know about ng-cloak
Funny!
Re: Little-known directives of Angular.js
#4ng-bind-html-unsafe has been removed in the latest release candidates, it won't be in 1.2
So try not to get attached.
Re: Little-known directives of Angular.js
#5I'll be looking into ui-view. I need different view options.
Re: Little-known directives of Angular.js
#6> "Angular performs validation of HTML5 input types out of the box."
I'm confused. What does angular have to do with this?
Re: Little-known directives of Angular.js
#7ngPluralize - Handles pluralization scenarios cleanly in your view. No more "var itemCountDesc = items.length + ' Item' + items.length === 1 ? '' : 's';"
Re: Little-known directives of Angular.js
#8> "Angular performs validation of HTML5 input types out of the box." I'm confused. What does angular have to do with this?
Angular adds $valid/$invalid for forms that you can check against.
Re: Little-known directives of Angular.js
#9Thanks for the post - I regularly use a lot of these, and I'm a big fan of ng-bind attribute over the {{ thing }} 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
#10What does "Flash Of Uncompiled Content" means?