If in a lot of controllers I inject modules or scopes that I do not use later, Could this affect the overall performance of the development?
For example, sometimes I inject $rootscope in many controllers and I do not end up using it inside the controller. Same thing happens me with the $timeout. Is it better to remove this not used injections if they are not used or they are invaluables in terms of performance? One more doubt, When we create new variables inside a controllers for use as references to internal data arrays or references to objects and we wanted them only inside the controller What is best to use whenever possible? var newArray; or $scope.newArray What is the diference, ¿both of them are going to be deleted when controller scope is detroyed, aren't them? Thank you -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
