Skip to content

defims/tie.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tie.js

tie dom and object

##usage

tie(objectPoint ,"objectProperty" ,elementPoint ,"elementProperty" ,"directive");
tie(objectPoint ,"objectProperty" ,elementPoint ,"elementProperty" ,function directive(){});

##how

use Object.defineProperty(objectPoint ,"objectProperty") and Object.defineProperty(elementPoint ,"elementProperty") for watch.
element = elementPoint[elementProperty]
value = objectPoint[objectProperty]
if element or value change directive will be excute

About

tie dom and object

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages