Created
February 26, 2020 14:55
-
-
Save johnleider/debe0af2329a5b003ae28f20a9c33a6a to your computer and use it in GitHub Desktop.
Revisions
-
johnleider created this gist
Feb 26, 2020 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,21 @@ <template> <v-app-bar :color="color" @scroll="onScroll" > </v-app-bar> </template> <script> export default { data: () => ({ color: 'blue', }), methods: { onScroll (scroll) { this.color = scroll > 10 ? 'red' : 'blue' }, }, } </script>