Can avoid injesting $state service here and use `$scope.transitionTo`