AngularJS - ngShow - does it perform the DOM composition? -


i know if ngshow evaluates false, still performs dirty checking inside directive.

so ngshow (like ng-show=false):

  • compose dom inside ngshow (since has $compile) , hides/removes contents, or
  • only performs dirty checking without cost of creating dom elements?

ng-show set elements display: none. still in dom , still dirty checked angular.

try using ng-switch removing elements dom. http://docs.angularjs.org/api/ng.directive:ngswitch


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -