Is it possible to prevent clicking on ng-repeat rows? How can I achieve this?
Below is a sample code snippet:
<div ng-controller="MyCtrl" class="grid">
<div class="header">
<div class="cell">Id</div>
<div class="cell">Name</div>
</div>
<div class="gridBody">
<div ng-class-even="'even'"
ng-class-odd="'odd'"
ng-class="{current: row.current == true}"
ng-click="clicked(row)"
ng-repeat="row in topics" class="row"
ng-disabled="disabled == true">
<div class="cell">{{row.id}}</div>
<div class="cell">{{row.name}}</div>
<div class="cell">{{row.current}}</div>
</div>
</div>
</div>
A jsfiddle has also been created to demonstrate the issue at hand.
Updates:
The jsfiddle link has been modified to provide more clarity on the problem I am facing. Hopefully, it helps in understanding my challenge better.