if i have an abstract state:
$stateProvider.
state('drug', {
abstract: true,
url: '/drug/:drugId',
template:
'<ui-view></ui-view>',
resolve: {
drugId : ['$stateParams', function($stateParams){
return $stateParams.drugId;
}]
}
}
that have some child states, in form: drug.x,drug.y and I want to choose, in one place in the app, a drugId that will come through the abstract state to all the child states, so that after that when i call to 'drug.x' state, it'll have the drugId value - where and how i do this one call to drug state with drugId param? I know that I can't call the abstract state itself.
thanks.