title: Angular ui -router Page browser Refresh Showing null values ?How could persist the data?
body: <p>I am using Angular Js Ui router, when click the button, i have call the function and take over the params and calling the service and getting a results from Db. working good.</p>
  
  <p>In the point of time.</p>
  
  <p>When Browser refresh the page, the value gets null and respone get 500 error.</p>
  
  <p>It looks into State configuration path and go to the controller,there have null values.
  How could persist the data in ui-state provider.</p>
  
  <pre><code>Url Look like :
  http://localhost/Myproject/#/home/Retailer/retailerId=1?retailerCode=3
  
  When I click the button i have carry over the value
   $state.go('Home.retailer', { 'retailerId': $scope.param1, 'retailercode': $scope.param1});
  
  
  
  While refersh the page, the values getting null in module.
  
  .state('home.retailer', {
  
          url: '/contract/:retailerId:9?retailercode:1',
          params:{
                     'retailerId': '9', 'retailercode': '1' 
         },
          views: {
              '@': {
                  templateUrl: baseUrl + 'retailr/retailerList',
                  controller: 'home',
              }
          },
          data: {
             Name: '',
              Img: 'Images/1.png'
          }
  
      })
  </code></pre>
  
  <p>Note:
  When button click i have get the value , so service will return the data.</p>
  
  <p>Problem:
  when refresh the page, it goes into module and check the home.retailer , and back to the service. how could  to persist the data when refresh the browser.</p>
  
  <p>what exactly this could do:  params:{
                         'retailerId': '9', 'retailercode': '1' 
             },</p>
  
  <pre><code>Because of null, response Here I am passing the retailer id and Retailer code in service inside the controller. 
   `RetailerService.pageLoad($scope.retailerId,$scope.retailercode)` when Click the button ,
  RetailerService.pageLoad($scope.retailerId :9 ,$scope.retailercode :1) , 
  
  
  
  Page Refresh RetailerService.pageLoad($scope.retailerId : null,$scope.retailercode : null)` 
  </code></pre>