ng-enabled
Should this attribute be created in a future release?
+1 =]
+1
Being new to angular and having just read about ng-show and ng-hide, I sort-of expected there to be ng-enabled to pair with ng-disabled too :+1:
+1
+1...this is a simple thing that makes a huge difference in code readability.
+1
Come on AngularJS developers, it might take only a few secs to commit but now you are stalling us for a year?
I have added it to a milestone after we get RC3 out the door, for discussion. Perhaps someone would like to make a tested, CLA-signed PR with decent commit messages?
+1 it would be nice to have it ng-enabled="true" -> no attribute disabled ng-enabled="false" -> set attr disabled
+1
+1
+1
+1
After a year and a half...is it added? I haven't contributed in many open source project but it seems tough to do such a minor change. It's a lot faster in other projects.
@cricardol not added. But not hard to add (see already open PR : https://github.com/angular/angular.js/pull/4240). Its not added because the core team disagrees with the need for this feature
Software engineers...Always arguing if something is conceptually coherent instead of using common sense.
+1
+1 To give concrete example of how the double negative impact: Either ng-disabled="!someValueModified" ng-enabled="someValueModified"
+1 Agreed that this is a useful feature and conceptually similar to ngShow/ngHide. I can think of many examples in my own projects where I've had two elements that are shown/hidden or disabled/enabled on inverses of the same condition, and having the directives themselves mirrored instead of the logic they use makes a lot more sense at a glance.
+1