title: Pass modal data to another page in angularjs
body: <p>I need to pass data from modal to another page, My modal promise function like this,</p>
  
  <pre><code>modalInstance.result.then(function (product) {
          $scope.selectedProduct = product;
          $location.path('cart');            
      });
  </code></pre>
  
  <p>Note that, Here I need to send product data to the new page 'cart'. How can I do this?</p>