Skip to content Skip to sidebar Skip to footer

Ngsubmit Not Working Inside Modal?

It seems that my submit button is not activating the ng-click angular directive and I cannot figure out why. It seems that every other person that had this problem didn't include t

Solution 1:

You need to put something like

<input ng-model="myForm.email"type="email"class="form-control"id="subCtrl.subData.email" placeholder="johndoe@example.com" required> 

and

<input ng-model="myForm.name"type="text"class="form-control" ng-model="subCtrl.subData.name" placeholder="John Doe" required> 

into your inputs, and give your form a name attribute

<formname="myForm"ng-submit="submit()">

plnkr: http://plnkr.co/edit/KRmZkPS6t4ANmAHwTevQ

Post a Comment for "Ngsubmit Not Working Inside Modal?"