get json model from another component in sapui5

Solutions on MaxInterview for get json model from another component in sapui5 by the best coders in the world

showing results for - "get json model from another component in sapui5"
Leo
21 Mar 2018
1var oModel = new sap.ui.model.json.JSONModel(oData);
2sap.ui.getCore().setModel(oModel, "modelname");
3
4var oData = sap.ui.getCore().getModel("modelname").getData();
5
Jannik
06 May 2016
1var oModel = new sap.ui.model.json.JSONModel(oData);
2sap.ui.getCore().setModel(oModel);
3
Lennard
20 Jun 2018
1var oData = sap.ui.getCore().getModel().getData();
2