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

10 lines
173 B
HTML
Raw Permalink Normal View History

2017-07-03 23:13:15 +00:00
<script>
2019-01-27 05:08:23 +00:00
export let to, push;
import { ROUTER } from './Router.html';
import { getContext } from 'svelte';
const { go } = getContext(ROUTER);
go(to, push);
2017-07-03 23:13:15 +00:00
</script>