I am working on porting a project over to Ui-router from ng-route. Previously my routes looked like this
{
customData: {
data: []
},
url: '/',
templateUrl: '/',
resolve: {
cmsData: {
cmsContent: cmsContent; // a function defined elswhere that reaches out to a cms system
}
},
}
This allowed me to access the customData attribute on $route.current.$$route.customData, however in ui-router the behavior is not the same, as is expected. I am looking for a way to pass that custom data, unique to that route, to its resolve function.
Any ideas would be really great. I have looked at solutions like $stateParams and $state.data, but since the routes are not resolved, I don't have the current state loading (at least how I understand it)