The injector is used to help AngularJS know the order of parameters given to the function in case the variable name change (e.g. after minimizing your JavaScript).
In your case, you've switched up the order of your injector parameters and the method signature, meaning that AngularJS will think that $scope
is $rootScope
and vice versa.
Either remove your $inject
or make sure the parameters are in the same order in both your method signature and in your injection array.