title: AngularJS adding array to cookie store
body: <p>The snippet is as follows</p>
  
  <pre><code>function CartForm($scope,$cookieStore) {
  $scope.invoice = {
      items: [{
          qty: 10,
          description: 'item',
          cost: 9.95}]
  };
  //want to add the above array to cookie store here 
  }
  </code></pre>
  
  <p>How can i put the above array into cookiestore, and later access it and bind it ?</p>