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
dominsidengshow(since has$compile) , hides/removes contents, or - only performs dirty checking without cost of creating
domelements?
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
Post a Comment