edit: unable to upload images so will explain
I have a weird issue with the navigation app. the problem is simple though but i am unable to debug it. Here's a list of steps that i did to arrive at the problem
- create a navigation app (it creates 2 html files, default.html and home.html)
- create a sampledata.js file and link it to home.html
- create sample json content in sampledata.js
- write the bindable template code in home.html
- lets assume the template is <div data-win-bind="{innerText:name}"></div>
- define the list view
- call winjs.ui.processall in home.js, under the ready: function()
- wait for output
if the entry point of the application i set as default.html then i get the following output:
the data gets bounded in the right place but is displayed as a stringified version of the JSON content. if i wanted to bind a name, it would be displayed as <div>{name:warlord}</div>
otherwise if the entry point is directly home.html then i get the expected result
the output comes correctly in the data is in the right place and only the value is shown in the (key, value) pair of JSON. eg, if name was bound then the output comes as <div>warlord</div>
so any ideas why the binding is failing initially?