@awes-io/vue-mc
v0.9.2
Published
Models and collections abstract layer.
Downloads
671
Readme
Awes.io Models and Collections Abstract Layer
Based on VueMC
Basic usage
- Ensure you are using @nuxtjs/axios in your project
- Install the module
yarn add @awes-io/vue-mc
- Now you are ready to build models and collections
- Import your
BaseModel
andBaseCollection
from this package
import { BaseModel, BaseCollection } from '@awes-io/vue-mc'
class Todo extends BaseModel {
defaults() {
return {
id: null,
done: true
}
}
}
class Todos extends BaseCollection {
model() {
return Todo
}
}
export default Todos
Build before release a new version
$ yarn build
Ensure to write proper commit message according to Git Commit convention