decor = require"bindable-decor"bindable = require"bindable"factory = decorfactory factoryusedecorbindablefactoryusedecorpreloadfactoryusedecorvirtuals ### bindings to properties on this model ### bindings: "firstName, lastName": "fullName": "map": "to": firstNamelastNamejoin" " ### validates the properties on this model ### fields: firstName: "string" lastName: "string" fullName: "string" ### virtual properties only get called when bound to ### virtuals: : loadClasses @next ### ### : super person = firstName: "craig"lastName: "condon" factorydecorateperson # nothing personget"classes"; # trigger virtual personbind"classes"to consolelog classes
bindable-decor
0.1.6 • Public • PublishedReadme
Keywords
nonePackage Sidebar
Install
npm i bindable-decor
Repository
Weekly Downloads
2
Version
0.1.6
License
BSD