Skip to content
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

[DOC beta] Update Route#loading example #13343

Merged

Conversation

duggiefresh
Copy link
Contributor

Fixes #13341


this.router.one('didTransition', function() {
view.destroy();
transition.promise.finally(function() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is the promise public?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is, but as DOC says, it is there if you want to pass around a promise without passing the full transition. In this case, I think transition.finally would do too.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call, will update 👍

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you.

@duggiefresh duggiefresh force-pushed the 13341-update-route-loading-example branch from ddefe94 to c4b20e3 Compare April 15, 2016 19:30
@rwjblue rwjblue merged commit fe04b2f into emberjs:master Apr 16, 2016
@rwjblue
Copy link
Member

rwjblue commented Apr 16, 2016

Thanks @duggiefresh!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants