I have the default page of my webapp which redirects to different components, something like as follows:
<script>
import page from "page";
import Form from "./Form.svelte";
import Dashboard from "./Dashboard.svelte";
let content = "";
page.base("/");
page("", function() {
content = Form;
});
page("dashboard", function() {
content = Dashboard;
});
page({
hashbang: true
});
</script>
Now, if I want to pass some props in say, Dashboard page from here, how can I do that? I tried following but it didn't work.
content = new Dashboard({
props: {
answer: 42
}
});