The order should be exactly the same
HomeControllers.controller('LogoutController', ['$scope','$rootScope', '$localStorage', '$location', '$http', function($scope, $rootScope, $localStorage, $location, $http){ ...
Otherwise, you may endup putting Zhang’s Hat to Li’s.