Skip to content

Commit

Permalink
Update vue example
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-lee committed Jul 30, 2024
1 parent f616faa commit b0926bd
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,13 @@ function App() {
import { useTimescape, type UseTimescapeOptions } from 'timescape/vue'
import { watchEffect } from 'vue'
watchEffect(() => {
console.log('Date changed to', date.value)
const { registerElement, registerRoot, options } = useTimescape({
date: new Date(),
})
const { registerElement, registerRoot, options } = useTimescape({
date,
minDate: new Date(),
} as UseTimescapeOptions)
watchEffect(() => {
console.log('Date changed to', options.value.date)
})
</script>
```

Expand Down

0 comments on commit b0926bd

Please sign in to comment.