Skip to content
This repository was archived by the owner on Apr 30, 2018. It is now read-only.

Commit d4c5342

Browse files
author
Kent C. Dodds
committed
Fixes #35
1 parent 957bf72 commit d4c5342

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/types/multiCheckbox.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,10 @@ export default ngModule => {
7171
checkValidity(true);
7272
}
7373

74-
if (opts.expressionProperties && opts.expressionProperties.required) {
75-
$scope.$watch($scope.options.expressionProperties.required, function(newValue) {
74+
if (opts.expressionProperties && opts.expressionProperties['templateOptions.required']) {
75+
$scope.$watch(function() {
76+
return $scope.to.required;
77+
}, function(newValue) {
7678
checkValidity(newValue);
7779
});
7880
}
@@ -83,7 +85,7 @@ export default ngModule => {
8385
return;
8486
}
8587
checkValidity(true);
86-
unwatchFormControl;
88+
unwatchFormControl();
8789
});
8890
}
8991
}

0 commit comments

Comments
 (0)