May 2019
Beginner to intermediate
548 pages
12h 39m
English
The Component.js file is the main entry point to the application. It is called either by the index.html file or the Fiori launchpad tile and contains the most important reference—to the application manifest—and the initial logic for the application. The sample file is listed here:
sap.ui.define([ "sap/ui/core/UIComponent"], function(UIComponent){ "use strict"; return UIComponent.extend("my.namespace.Component",{ metadata:{ manifest: "json" }, init: function(){ UIComponent.prototype.init.apply(this,arguments); this.getRouter().initialize(); } });});
The first line is a simple statement defining what the content of the file is in a form that the SAPUI5 core understands. Have a look at the following code snippet:
return UIComponent.extend("my.namespace.Component",{ ...Read now
Unlock full access