SAP Fiori Forum
Could you please explain me that how to create a component.js file and what is the use of this js file?
Kindly share your views here, thanks in advance.
It is used to create your component for your UI5 project. It is something similar to that of component controller in Webdynpro ABAP. You can create the component with file extension JS or JSON. It contains the metadata and configuration information and routing information and it creates the face for your application by extending faceless component sap.ui.core.UIComponent. It forms the component part of your MVC architecture in general.
Sign up for STechies