Can I trigger a form submit from a controller?

后端 未结 6 1495
独厮守ぢ
独厮守ぢ 2020-12-05 00:04

I\'d like to do a traditional form submit from within a controller. The scenario is that I want to hit a route on my web server and redirect to its response, which I can do

6条回答
  •  无人及你
    2020-12-05 00:37

    How about just out-right disabling the submit button until the form is valid:

    
    

    Take a look at this similar question I had: AngularJS Form Validation with Directives - "myform.$valid" not quite right for me

提交回复
热议问题