I have been trying to call method with argument in directives using angularjs 1.x.
I need to call a method call with argument num. I do not know how to pass that num argument to call method in directive.
myApp.directive('cccIrisRender', function () {
restrict: 'AE',
scope: {
call:'&'
},
templateUrl:'xyz.html',
controller:[$scope, function($scope){
$scope.callMe = function(num){
$scope.call(num);
}
}
]
};
});