Skip to Content
avatar image
Former Member

Include a second component in a target UI5 Application/Component

Hi everyone,

I am writing a UI5 faceless component which should be used in multiple other applications. The target applications are located in a package of an SAPUI5 ABAP respository. The component that should be included in the targets is in a different package in the same SAPUI5 ABAP repository.

How do I include this component? From documentation I added changes to the target manifest.json in the following way:

"dependencies": {

"minUI5Version": "1.30.0",

"libs": { "sap.m": {}, "sap.ui.core": {}, "sap.ui.layout": {} },

"components": { "com.xxxx.dva.component": {} }


But how is the component actually found? Does the ID follow the package path? Is there another place where I have to reference the dependent component in the target app?

Another questions is how and where do I instantiate the component? Is the init() function of the target Component.js the right place? There are also some parameters I would have to pass to properly inialize it. In the end the component and its data should be available app wide.

Thank you,


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers