I'm using ngmap and need to create a context menu when peeps right-click anywhere on the map and display a list of options. I've create an event using...
google.maps.event.addListener($scope.map, "rightclick",function(event){
$scope.showContextMenu(event);
});
...which all works hunky-dory but I'm a bit stumped on how best to go about inserting a context menu where each option in the context menu is bound to a function in $scope. Can anybody provide a novice with advice on the best approach? Not sure if creating a new DOM element is the angular way... should I be looking at a directive?
Any simple advice on the best approach is appreciated.
Cheers.