I have created a webpage with custom directives, in my main controller there is a function called isReadOnly(arg) which takes one argument and returns true or false. I am able to call this function for attributes like ng-show like this:
ng-show="isReadOnly('fieldName')"
And it works fine, the function is called. But for other custom attributes other than ng-show the function is never called and I do not know why.
uxReadonly
property in your directive?