Last active
February 15, 2018 12:53
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_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" | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Doesn't work..