I've an array and I'm looping over this array and calling a function into this ng-repeat and this function is in link function of a directive so my problem is, ng-repeat looping only twice (length of array items) but calling directive link function more than twice Here my code snippet
link:function(scope){
$scope.test = function() {
console.log('sssss');
}}
and template is
<div ng-repeat ="item in items> {{test()}}></div>
please help me to prevent calling test function more than items length.