Are there a command in angularJs 1.xx to disable in a global way throughout the development the use of animations of the animation module angularJs.

13 views
Skip to first unread message

Rafa

unread,
Oct 29, 2017, 12:37:49 PM10/29/17
to Angular and AngularJS discussion

I wanted to test a performance issue and memory leaks in the DOM and read that disabling animations could help see if that solves.

In some forums developers say that angular animate cause a lot of detached DOM. My angularJs is 1.2.5 and and for now, updating it is not an available option.

I use this code in every controller because I read this can disable angular animations módule.

$animate.enabled(false); 

  
And I use this code in config module of angularJs:

$animateProvider.classNameFilter(/(XXXXX-)/);


This code is supposed to disable the animation and only allow it in the elements whose tag name modifier class matches this string 'XXXXX'

Any other way to disable animations in angularJs?
Thanks in advance

Sander Elias

unread,
Oct 30, 2017, 5:59:08 AM10/30/17
to Angular and AngularJS discussion

Rafa

unread,
Oct 30, 2017, 9:00:32 AM10/30/17
to Angular and AngularJS discussion

Thank you very much.


El lunes, 30 de octubre de 2017, 10:59:08 (UTC+1), Sander Elias escribió:
Reply all
Reply to author
Forward
0 new messages