This package has been deprecated

Author message:

Much better to use es6 now :)

jsmodel

0.1.0 • Public • Published

Model.js

A simple Model for front and backend JS development.

Example

// Node.js
var Model = require('jsmodel')
// Html app
<script src="model.js"></script>
var User = Model.extend({
  fullName: function(){
    return this.get("firstname")+" "+this.get("lastname")
  }
})

var me = new User({
  firstname: "Samuel",
  lastname: "Delesque",
})

me.set("age",32)



me.fullName()
// -> "Samuel Delesque"

me.get("age")
// -> 32

Credits

This project was brought to you by Samuel Delesque.

Readme

Keywords

none

Package Sidebar

Install

npm i jsmodel

Weekly Downloads

0

Version

0.1.0

License

ISC

Last publish

Collaborators

  • domani-sdelesque
  • samueldelesque