Currently, I am facing an issue while trying to call a function within the same AngularJS service.
In my controller, I am able to successfully call the 'geocoding' function without any problems.
However, within the 'geocoding' function, I am encountering an error when trying to call another function called 'geovalue.'
The error message that is being displayed states that "geovalue is undefined" at the moment.
Here is an example snippet of my code:
app.service('geo', function(){ this.geovalue = function(val, decimals){ // Add your code here and return a value in the end }; this.geocoding = function(place, cb) { // Add your code var val = geovalue(val, decimals); // Continue with your code and return a value at the end }; });