Closed
Description
I would suggest that this change be reverted and allow dependencies to be injected into the onEnter/onExit hooks.
This allows services such as the $modal service from foundation/bootstrap to open/close modals based on states instead of managing that inside of a controller. it allows for much more dynamic behavior of states.