O'Reilly logo
  • Sam Ghanekar thinks this is interesting:

The problem is that the ng-show and ng-hide directives leave the elements they manage in the DOM and just hide them from the user. They are not hidden from the browser, as it were, and so position-based CSS selectors like this one will count hidden elements. In situations like these, you can remove, rather than hide, elements from the DOM with the ng-if directive,


Cover of Pro AngularJS


ng-show and ng-hide leaves the elements in the dom.. so css selectors will count these. consider using ng-if