Comment passer paramètre quand je redirige la page en angularjs en utilisant un routeur ui?

Je suis en train de passer des paramètres via l'interface utilisateur du routeur de l'état.aller

Cependant, je ne suis pas sûr de savoir comment passer les paramètres. Voici mes codes

app.config(function($stateProvider) {    
    $stateProvider
        .state('first', {
            url: '/first',
            templateUrl: 'first.html'
        })
        .state('second', {
            url: '/second',
            templateUrl: 'second.html'
        })
})

//my first.html
app.controller.('firstCtrl' ,["$scope", "$state", function($scope, $state){
    $scope.userInput <- come from user
    $scope.clickThis=function() {
        $state.go("second", $scope.userInput);
    }

}]);

//my second.html
app.controller.('secondCtrl,["$scope", "$state", function($scope, $state){
    //How do I get the parameter that is passed to here..
})

Je peux rediriger la page de second.html mais je n'arrive pas à obtenir le paramètre qui est passé à mon secondCtrl.
Quelqu'un peut-il m'aider à ce sujet?

Grâce.

source d'informationauteur FlyingCat