javascript - Using ng-disabled on a directive -


i wondering if following possible:

<directivename parameter1=value1 parameter2=value2 ng-disabled="true"> </directivename> 

for reason, wasn't working me , wasn't able find examples of use this.

i can, however, toggle visibility of directive using this:

<directivename parameter1=value1 parameter2=value2 ng-if="true"> </directivename> 

why can't seem use ng-disabled?

(the purpose of directive make connection topic , display messages in topic, outputs plain text.)

as per the documentation ngdisabled:

this directive sets disabled attribute on element if expression inside ngdisabled evaluates truthy.

but in case, seems ngdisabled adding disabled attribute element nothing it.

'disabled' makes logical sense elements allow user input or interaction. out of box, works form inputs, anchor tags , buttons. if require 'disabled' behaviour other things need provide yourself.


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -