AngularJS - Server side validation and client side forms

前端 未结 8 742
忘了有多久
忘了有多久 2020-12-12 11:40

I am trying to understand how to do the following things:

What is the accepted way of declaring a form. My understanding is you just declare the form in HTML, and ad

8条回答
  •  执念已碎
    2020-12-12 12:17

    As of July 2014, AngularJS 1.3 has added new form validation features. This includes ngMessages and asyncValidators so you can now fire server side validation per field prior to submitting the form.

    Angular 1.3 Form validation tutorial :

    • Taming forms in Angular 1.3
    • Video | Repo | Demo

    References:

    • ngMessages directive
    • ngModel.NgModelController

提交回复
热议问题