How to implement the cancel button for edit functionality in angularjs
<p>i have used edit button. after editing i have save and cancel button .save button is working as i expected but not the cancel button.
      if  i click the cancel button after trying to edit, it should show the previous text. can anyone please help me <br>
js fiddle here <a href="http://jsfiddle.net/F7K63/143/" rel="noreferrer">http://jsfiddle.net/F7K63/143/</a></p>

<pre><code> &lt;tr ng-repeat="item in items"&gt;
        &lt;td&gt;
            &lt;span ng-hide="item.editing"&gt;{{item.name}} &lt;button  ng-click="editItem(item)"&gt;Edit&lt;/button&gt;&lt;/span&gt;
            &lt;input ng-show="item.editing" ng-model="item.name"  autofocus /&gt;
            &lt;button ng-show="item.editing" ng-click="doneEditing(item)"&gt;Save&lt;/button&gt;
             &lt;button ng-show="item.editing" ng-click="Cancel(item)"&gt;Cancel&lt;/button&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
</code></pre>