locked
daat-win-bind and multiple bindings RRS feed

  • Question

  • Hello guys.

    According to the docs, I should be able to bind multiple properties from within the data-win-bind attribute. the docs available on http://msdn.microsoft.com/en-us/library/windows/apps/hh440968.aspx say "Separate multiple sets of element/data source property pairs with a comma."

    Doesn't this mean that the following snippet should initialize the img and alt properties?

    <div id="template" data-win-control="WinJS.Binding.Template">
            <div class="item">
                <img data-win-bind="src: img, alt: descricao" />
                <p data-win-bind="innerText: descricao"></p>
            </div>
        </div>    

    Unfortunately, it shows a broken image. Is this a bug or am I using the wrong approach here?


    Luis Abreu

    Monday, March 5, 2012 1:27 PM

Answers

All replies