When I'm using the default data binding in WinJS, how do I bind to the "current item" instead of specifying a property to bind to. I'm think of the "." in XAML that binds to the current item.
You can use "this" on the right side of the binding expression:
data-win-bind="innerText: this myInitializer"
However, if you do so, you should write a custom initializer that knows how to pull apart "this" into something that correctly turns into a string.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With