This web page performs superficial demo/test of the most important bindigs: text, value, onKey, onClick, forEach.
Inserting dynamically renewed value into the text: the value (integer in the input field below) is , and its square is .
Now let us change the value:
1/2 of the value:
← when we change it, other observables are auto-adjusted. This is because it has both compute and write properties defined.square of the value:
← similar to koCumputed: its change does not affect other observables.See index.js: we define an observable named people, which is both a function and an object posessing field people.v.
Below we see an example of a dynamic array bound to a table.
Nr. | Name | length | action | link |
---|---|---|---|---|
remove | link |