Do not inject $scope when not necessary

As requested by @asaurier :-)