Why does this give me an error:
angular.module('app')
.config(function($routeProvider, $locationProvider, $httpProvider, $location) {
Uncaught Error: Unknown provider: $location from app
But this line doesn't?
angular.module("app")
.factory("SomeResource",
function($q, $resource, $http, $location, AuthenticationService, Base64) {
It's the same app. Can config
only get providers and factory
only get non-providers?