Hi,
I created custom application with component.js file and JSON file( I saved in application only)
in Component.js file:(I tried in veiw.controller.js file init{} method also)
var oModel = new sap.ui.model.json.JSONModel(); | ||
oModel.setJSON(this.<Json filename>); | ||
this.getView().setModel(oModel, "JsonModel"); |
in .view.xml
<List id="lableID" items="{JsonModel>/<jsonfield>}">
But the data is not binding..?