$state, $stateParams, getting undefined object
问题 I am getting unexpected results from both methods. I have my $state configed $stateProvider .state('status', { url: "/status/:payment", controller: 'QuestCtrl', templateUrl: "index.html" }); And on the Controller I have: angular.module('quest').controller('QuestCtrl',function($scope,$stateParams,$state){ console.log($stateParams.payment); // undefined console.log($state); // Object {params: Object, current: Object, $current: extend, transition: null} } I already used $stateParams in other