realcrowd / angularjs-utilities

Hopefully useful directives, providers, filters, etc for AngularJS
Other
199 stars 50 forks source link

rc disabled is not triggering when there is change in value #5

Open arjunasuresh3 opened 10 years ago

arjunasuresh3 commented 10 years ago

Angular js version - v1.2.7

var rcDisabledDirective = { 'rcDisabled': ['rcDisabled', function (rcDisabled) { return { restrict: 'A', link: function (scope, element, attributes) { scope.$watch(attributes.rcDisabled, function(isDisabled) { rcDisabled.disable(element, isDisabled); // This is not getting triggered when there is change in submitInProgress value from false to true }); } } }] };