I want to call a function in controller from directive.

my directive

```
.directive('multEcs', ['$http', function($http){
    return{
        restrict: 'A',
        replace:false,
        link: function(scope, elem, attr){
            scope.addToArray();
        }
    }
}]);

```

Method in controller

```
$scope.addToArray = function(){
    console.log('method called');
}

```