-
-
Notifications
You must be signed in to change notification settings - Fork 623
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
How to handle search with $emit value? #41
Comments
@sajjadalis your Header us emitting <Header ... @q="$fetch" /> |
@atinux Thanks for reply. I tried this but its not working. With only If i use
|
Then you need to add a method onSearch to update q and call fetch() again |
@atinux Thanks for the help. Is this the correct way to call onSearch method? It's working and filtering content, but i'm not sure if its require to call the whole
|
I think that you can call |
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Kevin Marrec <kevin@marrec.io> Co-authored-by: Yaël Guilloux <yael.guilloux@gmail.com>
Co-authored-by: Farnabaz <farnabaz@gmail.com>
I have search input field in header component. I'm getting emitted value but it's doesn't filter content. How do i pass $fetch with $emit from header component or what is the right way?
Index.vue
Header.vue
The text was updated successfully, but these errors were encountered: