I am learning angularjs and a bit confused. I am creating an angular module and controller functions like this:
    var mapApp = angular.module("mapApp", []);
    mapApp.controller("mapController", function($scope) {
        $scope.save = function() {
            //do domething
        };
    });
And I have other functions out of the controller.
    function onMapClickEvent(e) {
             //do domething
    }
When map clilcked, I want to populate angular save function. Is this possible.
I asked this because sometimes we need to work with more then one API. AngularJS and Google Maps API. One API function need to populate other API.
 
    