The following code throws the error \"TypeError: Cannot read property \'$pristine\' of undefined\" when I click the \"check\" button.
app.controller(\'MainCt
I know that this is a old question, but i had a similar problem, and i changed the html and included my ng-controller within the html file.
So instead of
Change it too
And then in the myForm.html file, wrap the code in a div, and add the ng-controller attribute, so your myForm.html would become
Now your child controller is within the ng-include scope