I am trying to call a controller function from $scope function. I am new bee in angular So I want all the ways I can call controller functions from $scope functions. Below is an example.
 app.directive('regionList' , function() {
    return {
        restrict : 'E' , 
        templateUrl: 'regions-panel.html',
        controller: ['$scope', '$filter', function($scope, $filter) {
          $scope.regions = regions_json;
            this.test = function() {
                console.log("Contoller function");
            };
          $scope.editRegionData = function() { 
               console.log("Scope Variable function");
               // How to call test function from here and also vice versa of that
          }
        }],
        controllerAs: "regionsCtrl"
    };
}) ; // End of Directive
Please also give an example to call a function from one module to a function in another module.
 
    