@vanir/unicorn-core
v1.0.4
Published
dependence collection library
Readme
Introduction
Dependence Collection Library
Installation
npm install -g unicorn-corethen import unicorn-core and use it.
const obs = new Observable(object); // create observable object
// watch a field in observable object
const watcher = new Watcher(
obs,
key,
() => {
// callback function
},
value => {
// computedUpdate function with callback function return value
}
);
autoRun(watcher.callback); // begin to collect watching fieldTodo List
- [x] npm publish
