Hi Team,
I am using the routing concept and my MainView.xml has :
<core:View
controllerName="sap.ui.PageRoutingDemo.wt.view.MainView"
xmlns:core="sap.ui.core"
xmlns="sap.m"
xmlns:mvc="sap.ui.core.mvc" >
<App xmlns="sap.m" id="rootControl"/>
</core:View>
Now when i try to invoke the above view in the MainController.js as:
sap.ui.define([
"sap/ui/core/mvc/Controller",
"sap/m/Page"
], function (Controller) {
"use strict";
return Controller.extend("sap.ui.PageRoutingDemo.wt.view.MainView", {
onInit : function () {
}
});
});
I get error not able to initialize it.
Can some one help me?