mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-21 14:55:04 +00:00
decode req.params - fixes #417
This commit is contained in:
11
test/app/routes/echo/page/[slug].html
Normal file
11
test/app/routes/echo/page/[slug].html
Normal file
@@ -0,0 +1,11 @@
|
||||
<h1>{slug}</h1>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
preload({ params }) {
|
||||
return {
|
||||
slug: params.slug
|
||||
};
|
||||
}
|
||||
};
|
||||
</script>
|
||||
Reference in New Issue
Block a user