Skip to content

Instantly share code, notes, and snippets.

@tomnagengast
Created August 24, 2017 23:02
Show Gist options
  • Save tomnagengast/c9530929d392e49d442c84aa343c4c8d to your computer and use it in GitHub Desktop.
Save tomnagengast/c9530929d392e49d442c84aa343c4c8d to your computer and use it in GitHub Desktop.
// Similar to the Lamda setup
class Model {
constructor() {}
create() {}
get() {}
update() {}
delete() {}
}
class Bottle extends Model {
constructor() {
super()
}
}
export default {
data: function() {
return {
bottle: new Bottle()
}
}
methods: {
saveBottle() {
this.bottle.save();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment