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

后端 未结 4 1220
孤街浪徒
孤街浪徒 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:37

    The clue is using the ngForm directive and assign a form name attribute which references to the $rootScope.

    That works.

提交回复
热议问题