title: ng-click event not works for link in angular js
body: <p>Hi in my angular application, I am using routeProvider for routing partials,
  and in one page i have a set of links i am using ng-href for providing link. and I have a ng-click event for the link. but when I click on the link the page goes to the otherWise section of routeProvider and loads the page I have defined there.</p>
  
  <p>see the code</p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>           &lt;li ng-repeat="item in supplyItem"&gt;
                  &lt;a class="span" ng-click="showDetails()" ng-href="#{{item.header}}"&gt;
                      {{item.header}}
                  &lt;/a&gt;
              &lt;/li&gt;
  </code></pre>
  
  <p><strong>App.js</strong></p>
  
  <pre><code>var myApp = angular.module("myApp",[
      'ngRoute',
      'appController'
      ]);
  
  myApp.config(['$routeProvider',function($routeProvider){
  $routeProvider.
      when('/home',{
          templateUrl : 'partials/home_page.aspx',
          controller:'HomePageController',
      }).
      when('/supplies',{
          templateUrl : 'partials/supplies.aspx',
          controller:'SupplyController',
      }).
      otherwise({
          redirectTo: '/home'
      });
  
  
  }]);
  </code></pre>
  
  <p><strong>controller.js</strong></p>
  
  <pre><code>appController.controller('SupplyController', ['$scope', function ($scope) {
      $scope.firstITem = "Acrylics";
      $scope.showDetails = function() {
          alert("clicked");
  
      }
  
  
   $scope.supplyItem = [
      {
          "header": "Acrylics",
          "Acrylics": [
                  "Custom Tray Material",
                  "Reline Materials",
                  "Reline Materials-Hard",
                  "Reline Materials-Soft",
                  "Repair Acrylics",
                  "Resin &amp; Pattern Materials",
                  "Temporary Crown and Bridge Material",
                  "Tissue Conditioner",
                  ]
      }
  ];
  
  
  } ]);
  </code></pre>
  
  <p>what is the error ? how can I solve this</p>