Trying to pass on a parameter to my ui router:

```
$state.go('orderDetail', {myParam: {accountID: $scope.selectedAccount}})

```

In my `stateprovider` the `orderDetail` state looks like this:

```
.state('orderDetail', {
    templateUrl: 'modules/common/orders/partials/detail.html?referrer',
    controller: 'OrderDetailCtrl',
    url: '/detail/:myParam',
    resolve: {

        orderDetails: function (myservice, configService, $stateParams) {
            console.log('resolve');
            var referrer = $stateParams.myParam;
            debugger;
            console.log('stateParm', referrer.accountID);
            console.log('order detail resolving');
            //todo remove hardcoded
            return myservice.getDetail(configService.config('mock_order_detail').url + '?accountId=2233');
        }
    }
});

```

However `console.log('stateParm', referrer.accountID);` shows up as `undefined`. How can I pass in the `accountID` param?