Starting with v1.0.0rc1 , they are all equivalent:
<div ng-show="isVisible">Using ng-show</div> <div ng:show="isVisible">Using ng:show</div> <div data-ng-show="isVisible">Using data-ng-show</div> <div x-ng-show="isVisible">Using x-ng-show</div> <div class="ng-show:isVisible">Using class="ng-show:isVisible"</div>
The fiddle works here: http://jsfiddle.net/vojtajina/Fgf3Q/
However, the main reason for this was the resolution of valid HTML. So you can use x-* for your custom directives, but not for corner ones.
Check the docs for more information.
Vojta Mar 17 '12 at 20:07 2012-03-17 20:07
source share