yes in the component.js make the model global and then use like below:
var oModel = new sap.ui.model.odata.v2.ODataModel(sServiceUrl, oConfig);
// oModel.attachRequestFailed(null, ifb.order.assign.util.messages.showErrorMessage);
this.setModel(oModel);
and in view controller call like this :
this._oView = this.getView();
var oModel = this._oView.getModel();
oModel.read(spath,success{})