Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

Where to put reusable functions?

$
0
0

Hi there,

 

I got some functions I want to access "application wide" and wondering what's the best practice to do so.

 

Should I put them into a .js file and include this in the index?

Or would it be better to to implement them in the "main"-controller and access the via sap.ui.getCore().getModel()?

 

I'm interested in who you are handling this

Thanks!


Viewing all articles
Browse latest Browse all 6178

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>