In my application I am using a factory to open different forms in a modal dialog. in the modal-dialog's controller I check if the form is $valid before proceeding with my action's logic.
this was working file with ui-bootstrap $dialog (version 0.5.0) but when upgraded to using the $modal (0.9.0) this no longer works and i'm getting $scope.myForm.$valid = undefined.
I've tried using the $rootScope and passing the $scope from the calling controller but neither work.
Here is a plunker I've created to replicate the issue: (pop open the dialog and hit the Save button)
http://plnkr.co/edit/hLKob1LTzVs8GpOn5vmW?p=preview
can anyone suggest the best way to resolve this?
Thanks, N