title: How to send parameters in Angularjs $state.go?
body: <p>I am developing AngularJS application. I am trying to send values in <code>$state.go</code> to different states. I am trying as below.</p>
  
  <p>This is my state:</p>
  
  <pre><code>$stateProvider
  .state('Registration.OTPVerification', {
      url: '/RegistrationOTPVerification',
      templateUrl: 'Registration/RegistrationOTP.html',
      controller: 'RegistrationOTPVerification'
  });
  </code></pre>
  
  <p>I am trying as below.</p>
  
  <pre><code>var customerid = response.data.ID;
  var OTP = response.data.OTP;
  $state.go('Registration.OTPVerification', customerid,OTP);
  </code></pre>
  
  <p>I am trying to receive parameters in below controller.</p>
  
  <pre><code>(function () {
      angular.module('RoslpApp').controller('RegistrationOTPVerification', ['$scope', '$http', '$translatePartialLoader', '$translate', '$state', function ($scope, $http, $translatePartialLoader, $translate, $state, $stateParams) {
          var customerid = $stateParams.customerid;
          var OTP = $stateParams.OTP;
          alert(customerid);
      }]);
  })();
  </code></pre>
  
  <p>I am not able to receive parameters. Any help would be appreciated. Thank you. </p>