title: Pushing values to localstorage in angularjs not working
body: <p>I am getting value from firebase when i push the value to localstorage empty srting is push how to fix it </p>
  
  <p>my code :</p>
  
  <pre><code>    var app = angular.module("bucksbucketapplication", ['firebase', 'ngStorage']);
  app.controller("bucksbucket_orders", function ($scope, $firebaseArray, $firebaseObject, $http, $localStorage) {
      var fbvalues = new Firebase("https://qwertyuiop.firebaseio.com/values");
      $scope.syncfromfbvalues = $firebaseArray(fbvalues);
      $scope.$storage = $localStorage.$default({
          "orders": []
      });
      $scope.data = $localStorage.orders;
      $scope.cloneItem = function (syncfromfbvalues) {
          $scope.$storage.orders.push({
              "price": syncfromfbvalues.id
          });
      }
  });
  </code></pre>
  
  <p>and front my end code :</p>
  
  <pre><code>&lt;html ng-app="bucksbucketapplication"&gt;
  
  &lt;head&gt;
      &lt;script src="angular.min.js"&gt;&lt;/script&gt;
      &lt;script src="firebase.js"&gt;&lt;/script&gt;
      &lt;script src="angularfire.min.js"&gt;&lt;/script&gt;
      &lt;script src="ngstr.js"&gt;&lt;/script&gt;
      &lt;script src="script.js"&gt;&lt;/script&gt;
  
  &lt;/head&gt;
  
  &lt;body ng-controller="bucksbucket_orders"&gt;
  
           &lt;li ng-repeat="message in syncfromfbvalues"&gt;{{message.greens}} &lt;button class="btn btn-primary" data-ng-click="cloneItem(syncfromfbvalues)"&gt;to local&lt;/button&gt;&lt;/li&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>and <a href="http://embed.plnkr.co/r1POZf/preview" rel="nofollow">My Plunker Demo</a> </p>