Imagine this as my angular controller
app.controller("MyCtrl", function($scope, $modal, $state,) {
});
I am considering creating a global variable that stores commonly used dependencies like
var all = ['$scope', '$modal', '$state']
and then using all
throughout my code along with additional dependencies if necessary
Could there be any performance drawbacks to having all dependencies included everywhere?