0

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.

4
  • Which 'other custom attributes'? Commented Feb 1, 2017 at 9:50
  • In my custom directive there is a field in the scope called uxReadonly, looks like this: scope: {uxReadonly: '='} Commented Feb 1, 2017 at 10:00
  • And how do you use that uxReadonly property in your directive? Commented Feb 1, 2017 at 10:05
  • If uxReadonly is true then clicking the dropdown does not show any items Commented Feb 1, 2017 at 10:24

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.