I want to load json from a file, driverStandings.json (you see it left in the structure from the image). I use a service API to load this data in. I use following code(right in the image).
When I compile, I don't get my drivers list, I get following error list
TypeError: url.replace is not a function
at angular.js:8557
at sendReq (angular.js:8426)
at $get.serverRequest (angular.js:8146)
at deferred.promise.then.wrappedCallback (angular.js:11682)
at deferred.promise.then.wrappedCallback (angular.js:11682)
at angular.js:11768
at Scope.$get.Scope.$eval (angular.js:12811)
at Scope.$get.Scope.$digest (angular.js:12623)
at Scope.$get.Scope.$apply (angular.js:12915)
at done (angular.js:8450)
What is a TypeError and what am I doing wrong?
