Created
December 20, 2017 10:43
-
-
Save chimanaco/f434665bdff17d92e21aacc305349f60 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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