Ng-click is not working


#1

Hi,
ng-click is not working with my below code. Nothing happens on clicking.

<ion-item ng-repeat="cab in cabs" type="item-text-wrap" ng-click="bookCab(cab)">
<a class="item item-avatar">
  <h2><b>{{cab.provider}}</b> Type: {{cab.type}} {{cab.rating}}</h2>
  <h3>Fare/km: {{cab.fare}} Total Fare (tentative): {{cab.total}}</h3>
  <h3>Estimated Arrival Time: {{cab.eat}}</h3>
</a>
</ion-item>

</ion-list>

#2

Hmm, I was able to get it to work, but your code is a little off.

          <ion-item ng-repeat="item in items"ng-click="cliker()" href="#/item/{{item.id}}">
            <h2><b>{{cab.provider}}</b>Type: {{cab.type}} {{cab.rating}}</h2>
            <h3>Fare/km: {{cab.fare}} Total Fare (tentative): {{cab.total}}</h3>
            <h3>Estimated Arrival Time: {{cab.eat}}</h3>
          </ion-item>

#3

Thanks a lot for your help. It helped.