Skip to Content
0
Oct 13, 2020 at 05:56 AM

sap-ui5 I want to be able to resuse a custom fragment in other UI5 apps also

133 Views Last edit Oct 13, 2020 at 05:56 AM 3 rev

Hello experts

I have a few fragments with JS files as their controllers that I would like to reuse in all my apps.

An example of one of these would be our custom "upload attachment" fragment along with it's JS file as controller for the events. I would then like to include this fragment and JS in all my apps that requires documents to be uploaded.

What would be the best way to make these files global and how would I reference/include them in my projects/apps?

I have gone through many answers already available but i am not able to achieve the same.

If anyone has actually done it , please help me.

Thanks :)

Rashika Singhal