I am looking for amber solution for subscribing to observables - see
http://knockoutjs.com/documentation/observables.html.
Attached please find three files:
1. Html file is a plain Javascript implementation.
Please note the functionality related to the first column of checkboxes.
It hides/disables the second column checkboxes if turned off.
Else shows/enables and sets by default the check box to true.
(I am interested in solving this with amber.)
2. Knockout.st - Knockout wrapper - follows the pattern kindly suggested by Norbert.
3. ProofOfConcept.st - amber implementation of calling Knockout
UserFacilities open "should do the trick"
<body>
<div class="container"><div id="dyn_content"> </div></div>
...
</body>
Thanks in advance.
knockout.htmlKnockout.stProofOfConcept.st