I have the following jsfiddle code: http://jsfiddle.net/838SY/1/
My question is how can I make the following ng-click to set the isEditable only for the clicked entry and at the same time call the edit(object) method?
<span ng-click="flag == true||(isEditable=!isEditable)">
I've tried this:
<span ng-click="flag == true||(isEditable=!isEditable; edit(object))">
Doesn't work.
I've tried:
<span ng-click="flag == true||edit(object)">
and at the edit method level I defined :
$scope.isEditable=!$scope.isEditable;
this approach will set the isEditable value for all the list elements, which is not what I want. I only want it set for the clicked element.
Any ideas?
Thanks.