Best practice to share functions or classes to +page.svelte #7627
Unanswered
NormandoHall
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I need to instantiate a DatePicker class in each page that has Date Time field. Because
+layout.svelte
slot can't used to props, I created a component and used on each+page.svelte
where there is a DateTime field.Component DatePicker.svelte
+page.svelte
It is correct, or there are other ways to do it better.
Regards
Beta Was this translation helpful? Give feedback.
All reactions