How to get current name in config?

Hi there, I wanna get current state in config file. it use to define $ionicConfigProvider.tabs.position(“bottom”/“top”);
I wanna set in my app flexible tabs postion in diffrent state.

Have you tried $ ?

$state can’t use in config. error report in console is unkown provider.
if I write $state in controller definitely can.