i trying clear javascript memory of app far possible. thinking if can remove/delete controllers, services, factories, directives, etc , scope variables after use , reinitialize them whenever required, help.
can achieve this? if yes, how?
services , controllers instantatied once in application it's raw code it's pretty ilght.
unless services layer wield heavy object (cache, variable contains bunch of items on class level when local variable enough, ....) shouldn't have memory problem. note if use 3rd-party library not integrated angular, may need listen $destroy clean elements.
another way change page setup, maybe page redesign in more pages because theyare heavy.
i need more information rest.
Comments
Post a Comment