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

Why using a handler instead of the ref to the component? #17

Open
vibou opened this issue Nov 16, 2018 · 4 comments
Open

Why using a handler instead of the ref to the component? #17

vibou opened this issue Nov 16, 2018 · 4 comments

Comments

@vibou
Copy link

vibou commented Nov 16, 2018

I really like the way you did the component. It's not very vue like but giving stuff to the chart using the handler is quite smart and at least it gives the opportunity to fully use c3 through this process ! Well done.

However I was wondering why do you use an external handler to handle event whereas one could have send event directly to the component using $refs ?

@SacDin
Copy link

SacDin commented Nov 19, 2018

+1

@biering
Copy link
Owner

biering commented Nov 19, 2018

Thank you for the suggestion. I'll try to do it with refs.

@SacDin
Copy link

SacDin commented Nov 20, 2018

You can wrap it into component which will make handler inside and provide ref API to parent component.

@vibou
Copy link
Author

vibou commented Nov 30, 2018

The 1.2.10 stop using handler right ? You should update documentation according to this because now it's not working anymore. It says INIT is not possible.

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

No branches or pull requests

3 participants