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