Set AngularJS nested forms to submitted
I've got a nested AngularJS form like so: <form name="parentForm" ng-submit="submit()"> <input name="parentInput" type="text"> <ng-include src="childForm.html" ng-form="childForm"></ng-include> <button type="submit">Submit</submit> </form> And here's childForm.html <input name="childInput" type="text"> For reasons unrelated to the question, I can't merge the parent and child forms - they need to be two separate files. Now, when the user clicks the submit button, validation is correctly applied to both parentForm and childForm. However, only the parent form has it's $submitted flag set to true,