title: Detail Page View not Showing Data in ionic
body: <p>I'm new to Ionic. I write code for list. List is working perfectly but when click on any list-item it's not showing any data. 
  It showing me this error "Cannot GET /pilliondetails/1" how can i solve this?</p>
  
  <pre><code>app.factory('myService', function() {
  var savedData = {}
  function set(data) {
  savedData = data;
  console.log(savedData);
  }
  function get() {
  return savedData;
  }
  
  return {
  set: set,
  get: get
  }
  })
  </code></pre>
  
  <p>PillionList Controller:</p>
  
  <pre><code>.controller('PillionListCtrl',function($scope,$ionicHistory,myService){
  $scope.myGoBack = function() {
  $ionicHistory.goBack();
  };
  
  $scope.pillions = [];
  var promise=myService.get();
  $scope.pillions=myService.get();
  })
  </code></pre>
  
  <p>PillionDetail Controller:</p>
  
  <pre><code>.controller('PillionDetailCtrl',function($scope, $ionicHistory, $stateParams, myService)
  {
  $scope.myGoBack = function() {
  $ionicHistory.goBack();
  };
  var promise=myService.get($stateParams.requestId);
  console.log(promise);
  })
  </code></pre>
  
  <p>PillionList.html :Showing list pf Pillions </p>
  
  <pre><code>   &lt;ion-list&gt;
     &lt;ion-item data-ng-repeat="pillion in pillions"&gt;
      &lt;div class="list list-inset"&gt;
      {{pillion.request_departure_date}}-{{pillion.request_departure_time}}
      {{pillion.request_from}}&amp;nbsp;&amp;nbsp;&gt;&gt;&amp;nbsp;&amp;nbsp;{{pillion.request_to}}
      {{pillion.user_first_name}}&amp;nbsp;{{pillion.user_last_name}}
      &lt;a ui-sref="pilliondetails({pillionId:pillion.request_id})" nav-direction="enter"&gt;
          &lt;h2&gt;More Details...&lt;/h2&gt;
      &lt;/a&gt;
      &lt;/div&gt;
      &lt;/ion-item&gt;
     &lt;/ion-list&gt;
  </code></pre>
  
  <p>my app.js</p>
  
  <pre><code> .state('pillionlist', {
              url: '/pillionlist',
              templateUrl: 'templates/pillionlist.html',
              controller: 'PillionListCtrl'
          })
  
          .state('pilliondetails', {
              url: '/pillionlist/:pillionId',
              templateUrl: 'templates/pilliondetails.html',
              controller: 'PillionDetailCtrl'
          })
  </code></pre>
  
  <p>Its redirecting to pillionDetail view but not showing data.
  Please help.</p>