I am trying to create a directive that will tell me that the field is readonly or not.
myApp.directive('ngFieldLevelPolicies', function () { return { restrict: 'A', require: 'ngModel', link: function (scope, element, attrs, ngModelCtrl) { element.bind('input', function () { scope.$apply(function () {
I want this directive to be added as an attribute and called when the binding is happeing.
source share