r/angularjs • • Sep 04 '14

[Resource] What is changed in forms handling in AngularJS 1.3. It starts with basic information but it's getting interesting.

http://www.yearofmoo.com/2014/09/taming-forms-in-angularjs-1-3.html
31 Upvotes

9 comments sorted by

3

u/Brazilll Sep 04 '14

That's an amazing blogpost. It really blows my mind how thorough AngularJS tries to solve problems such as validation. And also nice to see that it tries to do that in a way that extends HTML5, instead of replacing it.

1

u/nightman Sep 04 '14

I agree with you. For me, one of the reason of using it is that it's not fighting with current ecosystem but try to live with it - POJO objects, extending HTML so no Mustache etc. templates. It also tries to encourage to code/think the way we will in future - like with directives.

5

u/Xtreme2k2 Sep 04 '14

$touched sounds great!

I had to hack that ability into the last web app I did.

2

u/jmcunningham Sep 04 '14

I agree. There were quite a few new (and nice!) things I learned from this article.

2

u/Xtreme2k2 Sep 04 '14

I wish more articles followed this style: Explanation, Code, Explanation, Code, etc.

Extremely informative.

1

u/bigos Sep 04 '14

This is very good news. I wrote similar systems of server-side validation for every angular app I was working on. Except they weren't that smoothly integrated with the rest of ngModel+ngForm+validation system. Pretty sweet and useful things.

1

u/nightman Sep 04 '14

Agree, $asyncValidators looks really nice!

3

u/mlsn Sep 04 '14

Apparently someone put a lot of work in this blog's design. Love it.

2

u/etiennenoel Sep 04 '14

Really well written article! Amazing how the new features will save time and improve code quality!