how to apply validation in AngularJS without form tag?

后端 未结 2 1517

I have a div in which I am not using the form tag and submit the form on ng-click button but how can I apply the validation of given filed in AngularJS.

<         


        
2条回答
  •  孤街浪徒
    2021-01-18 04:37

    You can use the "ng-form" directive if you really dont want to add a form tag.

    
      

    example

提交回复
热议问题