EncodeUriSegment is not a function

Angular returns to console error

encodeUriSegment is not a function

This happens when I tried to call the get function from angular -resource in my own controller. It looks like angular -resource cannot find this one function, but it exists in the angular.js file. I installed angular -resource by bower. I have all the file paths that I need in index.html.

full error message:

 angular.js:13920 TypeError: [horoskopy_App Error] encodeUriSegment is not a function at http://localhost:3000/bower_components/angular-resource/angular-resource.js:573:30 
+7
javascript angularjs angular-resource
source share
1 answer

You probably have a version conflict in your source. I had the same problem and found that I was using angular -resource 1.5.9 and angular 1.6. As soon as I had both options with the release of the same version, the problem was resolved.

+17
source share

All Articles