Joshua Austill
Joshua Austill
Ok, I went through this as thoroughly as I could and created specs for this function. Which unsurprisingly brought up more questions :) The regex for the replacement after casting...
Updated to reflect as such :) All tests passing.
Awesome, that's exactly why I'm doing this, to learn stuff like that. I'll have to research unset a bit.
So I actually prefer the standard ko data-bind="foreach: items" syntax verses {{#foreach: items}} {{/foreach}}. I am really only interested in using text and html attributes like the first two examples...
I can second that this is one thing I miss from angular, {{foreach: item in items}} or {{foreach: items as 'item'}} would work for me, both are very readable syntax...
I'm running into this same issue because I am loading data from ajax. So my observable is initialized with ko.observable(new Post());, then the ajax call loads up real data and...
After stepping through this today, the issue actually seems to be something a bit different. It's not that the binding is getting disposed, it's that it's calling init twice for...
I figured this out I think, here's a fiddle [https://jsfiddle.net/LkqTU/29770/](https://jsfiddle.net/LkqTU/29770/) So what's happening is that the update after the binding is happening before the binding is complete. This causes the...
Ok, so here's the fix. The issue is that the update is being done in the wrong place. comment out this line in the init function `$( element ).text( valueAccessor()()...
I could actually use this feature as well. We use account numbers that have the same issue, must always be 16 digits, even if that is 0000000000000001, and I really...