-
Notifications
You must be signed in to change notification settings - Fork 3k
Upgrading from 0.3 to 1.0.0-beta-3 #3138
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
Comments
Hi @httpete thanks for the feedback. Did you ever find out what was causing your type error?
I will consider this for the next release. If anything, I think the default would be to render an unnamed |
Hi @christopherthielen , I did it was an onEnter function I had on my route when I removed it, it went away. I also found that the stateEvents.js doesn't work out of the box, I had to remove the webpack wrapper. But even once on, it doesn't throw the $state***Events the same way, and my app was breaking. The events are not thrown the same way as 0.3.1 in my opinion. |
I'd like details on the differences, and how it caused your app to break. We have a pretty extensive set of unit tests ported from legacy ui-router that work with the I appreciate your feedback |
Thanks Chris, This widget behaves differently. The "show" event (the first $on.event there ) is fired, and then immediately after the "hideMe" is called. That is the $stateChangeSuccess. I bet this is hard to see. But the widget works fine in 0.3.1, and is always hidden in 1.0 because the this.hideMe() is fired when the show() is called.
|
This is how that event is fired. I go this route (badroute), the controller emits the "show" event, and then it is immediatlly hidden.
|
@httpete thanks for the details. That's a bug in the polyfill. I'll fix that in beta.4 -- tracked as #3144 In the meantime, you can use the |
Moved default template idea to #3178 |
Hi,
I am migrating a large app with a hundred or so routes to the new router. I found it dies with an error that is very hard to trace where it hurts:
"TypeError: Cannot create property 'dynamic' on number '1'"
The only way for me to find it was to comment out whole modules and then determine which one broke it.
and the need to force an empty template property also was hard to trace from the error thrown. Can't that default to an empty string? I have many template-less routes.
The text was updated successfully, but these errors were encountered: