Reputation: 198
I've created a JSON model in a controller, and I have nice data list there... but I do not know how to access this list/model via corresponding view. Help?
Upvotes: 0
Views: 3098
Reputation: 56
You can set model in controller:
`sap.ui.getCore().setModel(jsonModel,"NAME");`
and get this model in View (JS view) with:
`sap.ui.getCore().getModel("NAME");`
Upvotes: 2