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

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -