What is the most "w500 way" for setting up angular and various Google Maps services and features?
I am developing an application that uses google distance matrix, route service and some map features like custom markers. Where would you put all these different functions? Inside a controller, service, directive, or even a module with a combination of these? What would be the most angular way to do this in your opinion?
+3
source to share
1 answer
All DOM manipulation in Angular must be done using directives. This is the "angular way". There is an angular-ui project that has an example google map.
Have a look at your google map directive code .
+2
source to share