i'm declaring a variable in global and store in a model. using that model reference i'm doing binding in my view. is this bad??
var headerModel = {};
sap.ui.controller("sfs", {
onInit: function() {
var oModel = new sap.ui.model.json.JSONModel(headerModel);
this.getView().setModel(oModel, "HeaderModel");
},
})