Skip to content

Narazaka/reactiveproperty.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Partial javascript implementation of https://github.com/runceel/ReactiveProperty.

Synopsys

import { ReactiveProperty } from "reactiveproperty";

class MyClass {
    myProperty: ReactiveProperty<string>;

    constructor(str: string) {
        this.myProperty = new ReactiveProperty<string>(str);
    }
}

const obj = new MyClass("foo");
obj.myProperty.subscribe(str => console.log(str));
// > foo
obj.myProperty.value = "bar";
// > bar

See also

License

This is released under MIT License.