Skip to content

Instantly share code, notes, and snippets.

@robertz
Last active April 28, 2018 02:50
Show Gist options
  • Save robertz/c5cdc1534c226129e1b8ff2fb1ff13ff to your computer and use it in GitHub Desktop.
Save robertz/c5cdc1534c226129e1b8ff2fb1ff13ff to your computer and use it in GitHub Desktop.
export default {
data () {
return {
offset: 0,
tz: 'America/New_York',
}
},
computed: {
payees () { // may be referenced as this.payees
return this.$store.state.payees;
},
activePayees () {
return this.$store.state.payees.filter((payee) => return payee.active === true);
},
payments () { // may be referenced as this.payments
return this.$store.state.payments;
},
forecast () { // may be referenced as this.forecast.outlook -> bright
// run calculations
return { outlook: 'bright' };
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment