Changed from using $location to using $locationProvider