1
Fork 0
svelte-dynamic-router/src/components/Redirect.html

10 lines
173 B
HTML

<script>
export let to, push;
import { ROUTER } from './Router.html';
import { getContext } from 'svelte';
const { go } = getContext(ROUTER);
go(to, push);
</script>