How to validate a form when the submit button is outside of this form, with angularJs?

后端 未结 4 1213
孤街浪徒
孤街浪徒 2021-02-08 11:47

I have a form element created with AngularJS with a submit button within it and I would like to put this button outside of this form. How can I do that with Angular and have my

4条回答
  •  北荒
    北荒 (楼主)
    2021-02-08 12:24

    Even more concise than this answer:

    (Note that you don't even need to define myForm in the underlying controller and you can also omit the form attribute.)

提交回复
热议问题