Wednesday, May 7, 2014
Imagine you have an object:
If you want to bind the textbox to it, previously you had 2 options:
1. Trivial case: bind to _id property
2. More interesting: bind to getid property
Support for binding to functions was added to support ko.observables. And since getId returns the constant value, it worked. However, binding to getActualId was not useful, because it is using 'this', but was called as a function.
Now you have an option number 3:
Because now to retrieve the value getActualId will be called as a method of customerData object.
As a reminder, only the last property the control binds to can be a function.
So given the object like this:
You can bind to "_address.getStreet", but you cannot bind to "getAddress.getStreet"
Hope it helps.
Sunday, May 4, 2014
So, in April I got 115 visitors.
This is less than in March end even in February, however, I have a very good ratio of people staying on my site for longer than 30 seconds:
This means there were 48 people who actually were curious enough to go over the examples and understand a bit more about the library.
- What did make you interested?
- What is missing?
It would be great to hear from you, 48 people who stayed over 30 seconds.