title: How to save rows of multiple buttons value to localstorage in angularjs and ionic
body: <p>Here i have ng-repeat which populate number of rows with the value from controller.And each row contain three buttons labeled as excellent , good and bad.What i want to make is save one value to localstorage with cval and button value from three buttons at each row. And  selecting one should keep activate the button. </p>
  
  <pre><code>&lt;div class="element" ng-repeat="cval in userOrderedValues track by $index"&gt;
      &lt;div class="values"&gt;
          &lt;p&gt;{{cval}}&lt;/p&gt;
      &lt;/div&gt;
      &lt;div class="btns"&gt;
          &lt;button class="button button-balanced" ng-model="selected" ng-click="saveStatus($index,cval,'good')" ng-class="{'active':val=='good' &amp;&amp; current==$index}"&gt;excellent&lt;/button&gt;
          &lt;button class="button button-amber" ng-model="selected" ng-click="saveStatus($index,cval,'ok')" ng-class="{'active':val=='ok' &amp;&amp; current==$index}"&gt;good&lt;/button&gt;
          &lt;button class="button button-assertive" ng-model="selected" ng-click="saveStatus($index,cval,'nw')" ng-class="{'active':val=='nw' &amp;&amp; current==$index}"&gt;bad&lt;/button&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>How i can save these values to localstorage?  this is <a href="http://codepen.io/surajkhanal/pen/YGoeLy?editors=1011" rel="nofollow">codepen</a> i have made for this</p>