2.1.0 • Published 1 year ago

@cognitoforms/vuemodel v2.1.0

Weekly downloads
101
License
MIT
Repository
github
Last release
1 year ago

VueModel

A Vue plugin that provides a rich object model for Vue using model.js.

Install & Setup

import VueModel from "vuemodel";

// Install the Vue plugin
Vue.use(VueModel);

// Define your model
var model = new VueModel({ ... });

How it works

Whereas Vue by default proxies at an object's own properties to enable observable updates, for model types observability is based on the defined schema of the model. To accomplish this, the Vue plugin (installed via the Vue.use() call) obtains a reference to Vue and its internal observer types. When an instance of VueModel is constructed, it hooks into model eventing in order to create a custom observer for model instances, which will raise the appropriate events when model properties are accessed and changed.

License

MIT

2.1.0

1 year ago

0.9.0

2 years ago

2.0.0

2 years ago

0.8.2

3 years ago

0.8.1

3 years ago

0.8.0

5 years ago

0.7.0

5 years ago

0.6.1

6 years ago

0.6.0

6 years ago

0.5.0

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.3

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago