0

On the page after clicking "submit" form is submitted. But I forbade controller ctrlPersonalData form submission (return false)

Please help me cancel the sending of the form after clicking "submit"

Dropout
  • 13,107
  • 9
  • 51
  • 105
  • If it is a secure form, you may want to look at a PHP solution as some browser extensions allow HTML and JavaScript editing – samrap Dec 06 '13 at 07:44

2 Answers2

0

This is a simple HTML trick but should work for you:

<form onsubmit="return false;">
...
</form>

Please take this as a starting point and not as a copy-paste solution.

Vivek Jain
  • 3,733
  • 6
  • 28
  • 46
0

Remove the action="#" attribute from the form. Also in AngularJS you dont make a form post you make ajax calls with model data.

Chandermani
  • 42,389
  • 11
  • 84
  • 86