Skip to content

Instantly share code, notes, and snippets.

@tygerbytes
Created December 11, 2018 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tygerbytes/02f7b5d66aafeeb4953c748e84ee3105 to your computer and use it in GitHub Desktop.
Save tygerbytes/02f7b5d66aafeeb4953c748e84ee3105 to your computer and use it in GitHub Desktop.
computed: {
// Don't do this
missingRaceTime: () => {
return this.submitted && this.fiveKmRaceTime === '';
},
...
@JuanVqz
Copy link

JuanVqz commented Jan 29, 2020

The arrow function losts the VueJS component context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment