[Forms] Communicate dirty state

Communicate dirty state out of generated forms;
WTD-530.
This commit is contained in:
Victor Woeltjen
2014-11-26 13:08:57 -08:00
parent 77c1b150d9
commit b31b4770d1
7 changed files with 31 additions and 26 deletions

View File

@ -21,8 +21,9 @@ define(
function controller($scope) {
$scope.$watch("mctForm", function (mctForm) {
console.log(JSON.stringify(mctForm));
if ($scope.name) {
$scope.$parent.mctForm = mctForm;
$scope.$parent[$scope.name] = mctForm;
}
});
}