This is the html code
<div id="basicListView"
data-win-control="WinJS.UI.ListView"
data-win-options="{ itemDataSource : DataExample.itemList.dataSource }">
</div>
This is the JS code to connect to it
var myData = new WinJS.Binding.List([
{ title: "Basic banana" },
{ title: "Banana blast" }
]);
var publicMembers =
{
itemList: myData
};
WinJS.Namespace.define("DataExample", publicMembers);
When this is run it produces the expected output on the screen (I do not have a template yet)
The issue is when I read the data in from Azure and substitute it for myData the error issued
says cannot find itemList which I believe is referring to the Namespace not being found. What
is the best way to handle this.
Thanks