Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Simple JavaScript model using observable ES5 accessor properties.
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.gitignore
History.md
Makefile
Readme.md
component.json
example.html
index.js
package.json

Readme.md

model

Simple JavaScript model using ES5 accessor properties to access data. Models are observable so works well as context for reactive templates.

Installation

$ npm install anrim-model

$ component install anrim/model

API

var User = Model()
    .property('name', {required: true, minLength: 4})
    .property('email', {format: "email"})
    .property('roles', {type: "array", value: []);

License

MIT

Something went wrong with that request. Please try again.