JSON Data Handling in AngularJS
Work with JSON responses via res.data; AngularJS parses JSON by default.
Work with JSON responses via res.data; AngularJS parses JSON by default.
Validate with HTML5-style directives and show errors from form controllers.
Use required, ng-minlength, ng-maxlength, type=”email”, and ng-pattern.
Write validation directives that call ctrl.$setValidity.
Read form/control state flags to drive UX and disable submit.