In 0.4 uki does Bindings on views. Since I do not need to support
direct biding to dom nodes it can be done in a much simpler manner
then knokout does it now. With all the library core (bindings,
selectors, events, templates, builder etc) being under 10k gziped.
API now looks like this:
// create an observable model
var Model = uki.newClass(Observable, {
// with observable property
text: uki.Observable.newProp('text')
});
var m = new Model();
// bind default Text's default 'value' property to model's 'text'
uki({ view: 'nativeControl.Text', binding: { model: m, modelProp:
'text' });
On Mar 9, 5:42 pm, Greg <
greghrobe...@gmail.com> wrote:
> Just found this framework today, and let me say I'm impressed. I've
> been working on a desktop style web app for my company and been using
> a mixture of knockoutjs and jquery templates to build the whole
> thing. Have you looked at utilizing knockoutjs to do the binding in
> your views instead of writing "glue" code in your controllers via the
> model events? I think if these two projects paired up it would be
> pretty amazing.
>
> I put together a hack demo showing the two interact herehttp://
jsfiddle.net/7G2h5/