You can find a Plunker demonstrating the Problem here: Plunker
I want to use nested forms in AngularJS. To do that it seems like ng-form is the way to go and i tried the following:
<form novalidate ng-submit="ctrl.form1()">
<button type=submit>Form1</button>
<ng-form novalidate ng-submit="ctrl.form2()">
<button type=submit>Form2</button>
</ng-form>
</form>
While I expected the inner submit to execute the submit-action of the inner form, instead the method form1() is called everytime when i click either button.
Why does it behave like this and how can i achieve the expected result?