use devalue instead of serialize-javascript - fixes #112

This commit is contained in:
Rich Harris
2018-03-10 19:27:04 -05:00
parent fb24c862f3
commit 45b1147228
5 changed files with 55 additions and 3 deletions

View File

@@ -0,0 +1,17 @@
<h1>{{foo.bar()}}</h1>
<script>
export default {
preload() {
class Foo {
bar() {
return 42;
}
}
return {
foo: new Foo()
};
}
};
</script>