Skip to content

Commit

Permalink
chore: enable ts in template for example
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Sep 22, 2021
1 parent 91f581b commit 4f15cba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/TypeScript.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ const a: Ref<number> = ref(12)
</script>

<template>
<p @click="a++">From TSssss: {{ a.toFixed(2) }}</p>
<p @click="a++">From TSssss: {{ a?.toFixed(2) }}</p>
</template>
2 changes: 1 addition & 1 deletion example/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ module.exports = (env = {}) => {
loader: 'vue-loader',
options: {
refSugar: true,
enableTsInTemplate: false,
// enableTsInTemplate: false,
},
},
{
Expand Down

0 comments on commit 4f15cba

Please sign in to comment.