I want to create an XMLView in runtime and bind a controller to it. But I don't know how to create and instance of the controller in runtime.
Here is the code that I wrote:
var oView = sap.ui.xmlview(sViewId, {
viewContent: sViewContent,
controller: ?????
});
oRouter.getViews().setView(sViewName, oView);
Here is the API that I wrote this code based on:
https://openui5.hana.ondemand.com/#docs/api/symbols/sap.ui.html#.xmlview