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
Post a Comment