title: Showing undefined when passing data using params in ui-router
body: <p>In my controller,</p>
  
  <pre><code>$scope.register = function(index) {
              $state.go('account.accountRegister', {obj: {accountType: $stateParams.accountType, accountName: $scope.data[index].accountName}})
          }
  </code></pre>
  
  <p>In  my router,</p>
  
  <pre><code>.state('account.accountRegister', {
                      url: '/register',
                      views: {
                          'mainView@':{
                              templateUrl: 'app/views/registration.html',
                              controller: 'registrationController',
                              params: {
                                  obj: null
                              }
                          }
                      }
  
              })
  </code></pre>
  
  <p>In my registrationController iam getting data using </p>
  
  <blockquote>
    <p>$state.params.obj</p>
  </blockquote>
  
  <p>But it is showing undefined. Help me if I did anything wrong here.
  Thankyou.</p>