title: Pass object to a controller using state.go() in angularJs
body: <p>So I want to pass an object(json)(ex: person entity) as parameter for state.go() without send it by url.
  I tried using params like this</p>
  
  <pre><code>     .state('send-to',{
          url:'/:id/options',
          views:{
              'content@':{
                     templateUrl:'page.jsp',
                     params:      ['ref'],
                     controller:'optionCtrl'
                    }
              }       
          })
  </code></pre>
  
  <p>and in my controller1 i use this:</p>
  
  <pre><code> $state.go('home.referentiel.option',{id:$scope.selected,ref:p});
  </code></pre>
  
  <p>and in my controller 'optionCtrl' i use this:</p>
  
  <pre><code> $scope.selectedReferentiel = $stateParams.ref;
  </code></pre>
  
  <p>Thanks</p>