Learning the component concept of UI5
UI5 There are two kinds of component:
One is faceless component (class:sap.ui.core.Component), which has no user interface and is typically used to obtain data from the backend system.
The other is UI component (Class:sap.ui.core.UIComponent), which are used for screen display, and typically correspond to a screen area or element that can be reused.
Both of the Component reference classes are sap.ui.core.Component and can be extended by inheriting the base class or another Component to extend the functionality of the current Component
When constructing the component, the name is the package name, the module name is the package name +. Component, that is, the name declared by JQuery.sap.declare or extend method in Component.js
A component is a folder, the folder name defines the component name and contains all the resources that component might use, such as CSS view and image
Component.js:component controller, defining properties, collections, events, and methods the Name property that is worn is the package name where the component resides.
Component.json:TODO
All paths under the component folder are relative paths relative to Component.js, not index.html files
A complete component directory is as follows:
SAP ui5-component