Hi all,
I have run this demo and I am learning its source code.
In index.html:
new sap.m.Shell({
showLoginout : true,
title : 'wangdaogui',
app : new sap.ui.core.ComponentContainer({
name : "sap.ui.demo.myFiori"
})
}).placeAt("content");
In Component.js:
jQuery.sap.declare("sap.ui.demo.myFiori.Component");
sap.ui.core.UIComponent.extend("sap.ui.demo.myFiori.Component", {
I have got some questions for the above code.
1, Is writing a Component.js for index.html a fixed way to do that?
2, Could some one explain the usage of "jQuery.sap.declare("sap.ui.demo.myFiori.Component");"