I am setting a model on core with sap.ui.getCore().setModel(uModel, 'userModel'); when the user logs on.
But when the user logsout I wan to destroy this model and also unSet it from core.
How to do it?
setModel(oModel, sName?) : sap.ui.core.Core
Sets or unsets a model for the given model name.
But, if I call sap.ui.getCore().setModel('userModel'); --> this is not unsetting the model, moreover I want to destroy the model itself.