The reason the ngEnabled directive is ngEnabled in Angular is rather semantic - there is nothing in the HTML specification that matches it. At the same time, the ngDisabled directive already exists, which works with the disabled attribute. For the same reason, there is no ngUnchecked directive, because ngUnchecked already exists that sets / removes the checked attribute.
Now a reasonable question: why do we have both ngShow and ngHide ? Well, it's just for convenience in this case, I think, because having both ngShow and ngHide no more confusing than ngShow , but at the same time it is very convenient to have both.
dfsq May 22 '15 at 10:41 a.m. 2015-05-22 10:41
source share