We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There are some functions I wana to do on my element after the promise has been resolved using Promise component
<template> <Promised :promise="user"> <div class="box">Hello {{ user.name }}</div> </Promised> </template> <script> export default { computed: { user () { return fetch("/users/me") } }, mounted () { $(".box").style({ color: "red" }) } } </script>
we can make Promised component fires a resolve event after the promise has been resolved and the slot has been mounted
<template> <Promised :promise="user" @resolved="color"> <div class="box">Hello {{ user.name }}</div> </Promised> </template> <script> export default { computed: { user () { return fetch("/users/me") } }, methods: { color () { $(".box").style({ color: "red" }) } } } </script>
The text was updated successfully, but these errors were encountered:
Duplicate of #311
Sorry, something went wrong.
Please, search existing issues and pull requests before opening issues, it saves maintainers a lot of time 🙏
No branches or pull requests
What problem is this solving
There are some functions I wana to do on my element after the promise has been resolved using Promise component
Proposed solution
we can make Promised component fires a resolve event after the promise has been resolved and the slot has been mounted
The text was updated successfully, but these errors were encountered: