And I have the following links in my page as following :
<li ng-repeat="o in villes | shuffle | limitTo:5"><a href="#" ng-click="searchByVille({{o.codeVille}})">{{o.nomVille}}</a></li>
I want when I click on some link to call the searchByVille function and to log the parameter I passed to it as following :
$scope.search = function(id){
console.log(id);
}
which doesn't work.
How can I solve this ?