I have a subform that is shared among multiple views in my app. In one view, this subform is displayed alone with a back/continue button at the bottom that leads the user to
The child scope created when you use ng-include is hiding the form functions from the parent.
In addition to using a directive, you can also add an object in the parent, but it's important to set the name of the form to an object with a property like so:
and in the parent controller
$scope.myFormHolder = {};
then the following should work:
$scope.myFormHolder.myForm.$pristine
This way when the form is evaluated, myForm.$valid will get set on the parent. I believe I asked this same question: Why form undefined inside ng-include when checking $pristine or $setDirty()?