[Forms] Add more form controls

Add remaining platform form controls; amend mct-form
and mct-control directives to better communicate state.
Begin working on problem of communicating validation
back out of the form. WTD-530.
This commit is contained in:
Victor Woeltjen
2014-11-26 12:50:51 -08:00
parent 658d485ccc
commit 77c1b150d9
7 changed files with 77 additions and 8 deletions

View File

@ -19,10 +19,23 @@ define(
"templates/form.html"
].join("/");
function controller($scope) {
$scope.$watch("mctForm", function (mctForm) {
if ($scope.name) {
$scope.$parent.mctForm = mctForm;
}
});
}
return {
restrict: "E",
templateUrl: templatePath,
scope: { structure: "=", ngModel: "=ngModel" }
link: controller,
scope: {
structure: "=",
ngModel: "=",
name: "@"
}
};
}