[Angular-ui-router] onExit/onEnter can be inline injected functions