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