Skip to content

Instantly share code, notes, and snippets.


Caleb Roseland calebroseland

View GitHub Profile
View vue-js-data-reactivity.js
import Vue from 'vue'
import {DataStore, Record} from 'js-data'
// define a base class that enables property-level vue reactivity.
export class VueReactiveRecord extends Record {
constructor (...args) {
// among other things, this will apply js-data schema if configured to do so; be sure to do `track: true`