mirror of
https://github.com/mathew-kurian/Scribe.js
synced 2025-04-25 06:45:10 +00:00
18 lines
400 B
JavaScript
18 lines
400 B
JavaScript
(function () {
|
|
|
|
'use strict';
|
|
|
|
window.app.directive('indeterminate', function () {
|
|
|
|
return {
|
|
restrict: 'A',
|
|
link: [function (scope, element, attributes) {
|
|
return scope.$watch(attributes.indeterminate, function (val) {
|
|
return element.prop('indeterminate', !!val);
|
|
});
|
|
}]
|
|
};
|
|
|
|
});
|
|
|
|
}());
|