$state.controlledBy( controller[, state_name ]) function.
how could this be useful
well, if you want to see if the current state is the "last valid state", that's not a parent of currently active state.
given states (controllers will be referred with tne same name):
when current state is
$state.controlledBy( ctrl ) will return true only for