I am using this: http://jasonwatmore.com/post/2014/02/15/AngularJS-Reverse-Geocoding-Directive.aspx
Basically, I have it working fine when I use this:
<reverse-geocode lat="40.730885" lng="-73.997383" />
But, here is the issue..
When I have it like this:
<reverse-geocode lat="{{vm.user.location[1]}}" lng="{{vm.user.location[0]}}"></reverse-geocode>
It doesn't work with the values for {{vm.user.location[1]}} and {{vm.user.location[0]}} because for some reason its passing 0 instead of the real values..
When I type this into a span, the values come out just fine.
<span> Lat:{{vm.user.location[1]}}, Long:{{vm.user.location[0]}} </span>
I'm not sure what's going on :(
Why does it think I am passing it values of 0 and not the actual lat/long values from my db?