Search Value: {searchValue}
diff --git a/src/App.svelte b/src/App.svelte index f851b33..6d6734c 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -21,14 +21,22 @@ window.addEventListener('scroll', handleScroll); return () => window.removeEventListener('scroll', handleScroll); }); + + let searchValue = ''; + + function handleSearch(event) { + // Update the searchValue with the value received from the child component + searchValue = event.detail; + }
Search Value: {searchValue}
Visit the Svelte tutorial to learn how to build Svelte apps.
-
- This template is pre-configured with svlete-spa-router for routing.
- Visit the documentation for the router to learn more.
-
- Check a route: Lorem ipsum -
- - +