Skip to content

Instantly share code, notes, and snippets.

@chimanaco
Created December 20, 2017 10:43
Show Gist options
  • Save chimanaco/f434665bdff17d92e21aacc305349f60 to your computer and use it in GitHub Desktop.
Save chimanaco/f434665bdff17d92e21aacc305349f60 to your computer and use it in GitHub Desktop.
// Can't use arrow function with watch.
```
watch: {
mySeconds: 'send',
hour(newValue) {
// You can use this here
const tl = new TimelineMax();
tl.to(this, 0.5, {
animatedHour: newValue,
delay: 0,
});
tl.restart();
},
},
methods: {
send(value) {
// do something
}
}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment