Skip to content

Instantly share code, notes, and snippets.

@StErMi
Last active February 15, 2018 12:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save StErMi/74c1e08bbc2ce8f78976c7d4e8365d58 to your computer and use it in GitHub Desktop.
Save StErMi/74c1e08bbc2ce8f78976c7d4e8365d58 to your computer and use it in GitHub Desktop.
Example of manifest.json to directly load a local json inside a component model
{
"_version": "1.1.0",
"sap.app": {
"dataSources": {
"init_data_alias": {
"uri": "model/init_data.json",
"type": "JSON"
}
}
},
"sap.ui5": {
"_version": "1.1.0",
"models": {
"i18n": {
"type": "sap.ui.model.resource.ResourceModel",
"settings": {
"bundleName": "com.openui5.example.i18n.i18n"
}
},
"init_data": {
"type": "sap.ui.model.json.JSONModel",
"dataSource": "init_data_alias"
}
}
}
}
@HOLLIX
Copy link

HOLLIX commented Feb 15, 2018

Doesn't work..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment