I'm having trouble solving this issue. Here's the state I am working with:
var myState:ng.ui.IState = <ng.ui.IState> {
url: '/new/{order.orderNumber}',
controller: 'OrderController',
controllerAs: 'vm',
templateUrl: '/order.tpl.html',
resolve: {
order: ['OrderService', '$stateParams', '$q', duplicateOrder]
}
};
When I try to go to this state using:
this.state.go("myState", {"order": order});
The method duplicateOrder within the resolveFunction cannot find the order Object, as $stateParams is empty.
If I use a String instead of an object, everything works fine. I am currently using UI-Router v0.2.18, but I have read that objects were possible since v0.2.13.