The solution might be simple but i am not able to solve it. Just trying to show data in the next view from controller after clicking a anchor tag in the first view.the page changes successfully but data is showing.
//This is my App.js
.config(function($stateProvider,$urlRouterProvider) {
  $stateProvider
  .state('Login',{
    url:'/Login',
    templateUrl:'templates/Login.html',
    controller:'SignInCtrl'
  })
.state('saledetailstable',{
    url:'/saledetailstable',
    templateUrl:'templates/saledetailstable.html',
    controller:'SignInCtrl'
  })
//This is my first view
<tr ng-repeat="item in saleitems">
       <td>{{item.id}}</td>
       <td>{{item.totalqnty}}</td>
       <td>{{item.totalprice}}</td>
      <td><a ng-click="additems()">{{item.inv_no}}</a></td>
       <td>{{item.inv_date}}</td>
       <td>{{item.sync_status}}</td>
       <td>{{item.device_Id}}</td>
       <td>{{item.U_id}}</td>
     </tr>
//This is my controller code
$scope.additems = function ()
  {
      $scope.saledetailsitems=[{ id: '45', item: 'hello' }];
   $state.go('saledetailstable');
  }
//This is my next view
<tr ng-repeat="item in saledetailsitems">
       <td>{{item.id}}</td>
       <td>{{item.item}}</td>
     </tr> 
 
     
     
     
    