javascript - ngSwitch slows down the APP -
i have popup directive, , popups contains different content. use ng-switch when show popups content, slows down interface, more time open popup, slower gets.
now if use ng-show instead of ng-switch, interface doesn't slow down, problem is, number of watchers doubles.
i using angularjs 1.4.4, suggest? directives have:
scope: { attrs: '=?' }
and class data.
number of watchers:
ngswitch - 771
ngshow - 1481
Comments
Post a Comment