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