I use this:ngmap.github.io and ionic framework.
I try get current position daynamicly like this js code:
google.maps.event.addListener(map, 'idle', function(){
var bounds = map.getBounds();
//returns an object with the NorthEast and SouthWest LatLng points of the bounds
});
how can I convert this code to angularjs?