-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$transitions when using to
and from
not working
#2963
Comments
The
Two things to note:
This is primarily a docs issue, I think. |
Thanks for the clarification, it would certainly be helpful to add such info to the docs. I must add though that I had also tried to use the exact state name (e.g. "app.admin-panel.dashboard"), but it wasn't working either. |
That should indeed work. Maybe post more details about that. |
Docs notes to self:
|
I' was trying with this exact code, which was not executing the callback when navigating to the state
Perhaps is the |
should be |
Sorry about that! |
I have the same issue
even if I try with
Any suggestion? |
@Riccardo-Andreatta where does this code (which registers the hook) live? Are you sure it's being called? When is it called? |
Issue
$transitions
, callback function is expected to be executed whento
andfrom
parameters are matchedDescription
I have encountered a problem when using $transitions and declaring the
to
andfrom
parameters.The code in the callback was never executed:
I've also testes all methods:
Unfortunately nothing ever gets printed in the console.
I thought I was doing something wrong, which might well be the case, so I posted on SO this question.
As I had no answers, I made some tests, and I found out that without declaring to or from, it works:
Could it be a bug?
The text was updated successfully, but these errors were encountered: