You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to trigger a transition hook which only fires if the user enters a specific state without having a from state, e.g. they land on the page by typing in the URL or following a direct link.
However, that seems to capture any transition to any welcome.* route, as I suspect the empty from value is being ignored.
Is there another way to have hook criteria match only when there isn't any from state?
If not, can it be implemented so that an empty string (as opposed to undefined / null) triggers this check?
From @adamreisnz on January 19, 2017 22:43
I want to trigger a transition hook which only fires if the user enters a specific state without having a from state, e.g. they land on the page by typing in the URL or following a direct link.
I assumed this would be accomplished via:
However, that seems to capture any transition to any
welcome.*
route, as I suspect the emptyfrom
value is being ignored.Is there another way to have hook criteria match only when there isn't any
from
state?If not, can it be implemented so that an empty string (as opposed to
undefined
/null
) triggers this check?The docs don't document this use case either.
Copied from original issue: angular-ui/ui-router#3285
The text was updated successfully, but these errors were encountered: