I've successfully implemented a directive that generates a Google map on the page.
Now, my goal is to pass the map object back out of the directive and into the parent controller. This will allow me to utilize it in various methods as needed.
While I could store the map object as an attribute, this approach doesn't seem ideal to me. Is there a more direct way to pass the map object so I can access it whenever necessary?
Appreciate any advice, James