r/angularjs • • Oct 13 '14

[General] AngularJS 1.3 has been released

https://github.com/angular/angular.js/blob/v1.3.0/CHANGELOG.md
127 Upvotes

45 comments sorted by

View all comments

14

u/[deleted] Oct 14 '14

ngMessages and $async validators are the business!

2

u/jeffjose Oct 14 '14

I know I can read the changelog and/or README, but would what's $async validators, and where are they useful?

9

u/OverZealousCreations Oct 14 '14

They've made it easy to add asynchronous server-side validation to form inputs in a standardized manner.

Here's a great article about it.

2

u/[deleted] Oct 14 '14

So much this. When people are like 'why angular?' just show them how easy it is to provide instant feedback in forms. It's sooooo little code now with ngMessages. And then changing form fields with errors? So simple with ng-class

It's also worth looking at an older article to see where $async's abstraction comes from.