Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9129

questions about MVC in demo

$
0
0

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");"



Viewing all articles
Browse latest Browse all 9129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>