ko_observable

0.1.0 • Public • Published

observable.js

Coverage Status

Observable.js is a tiny library (gzipped less then 1.4KB) that makes knockout's gorgeous observables available, without the bloat of the whole knockout.js framework.

It supports ko.observable, ko.subscribable and ko.computed. Designed for maximum compatibility these run successfully against knockout's own unit test specification.

var knockout = ko.observable("Knockout.js");
var rocks    = ko.computed(function(){
    console.log( knockout() + " rocks!" );
});
// Prints "Knockout.js rocks!"

knockout("Observable.js");
// Prints "Observable.js rocks!"

I developed this to embed observables into my own integration testing framework - surely you can imagine other places where some observables might be useful :-)

Readme

Keywords

none

Package Sidebar

Install

npm i ko_observable

Weekly Downloads

1

Version

0.1.0

License

none

Last publish

Collaborators

  • fru