-
Notifications
You must be signed in to change notification settings - Fork 18
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
Add a "computed" observer #93
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've started to write a
computed
decorator that behave like computed variables in vue, and I'm wondering whether this could be a welcome addition to vuejs?It is based on
traitlets.ObserveHandler
. To make it work I've also borrowed theas_refs
andcreate_ref_and_observe
functions fromVueTemplateWidget.py
. Exposing those functions or integration this decorator in ipyvue would avoid code duplication.Contrary to vuejs, dependencies must be explicitly listed.
Usage example:
vue_computed.py.gz
The text was updated successfully, but these errors were encountered: