JS File share

Is there any particular way to share a javascript file for some a form component? Or should it be done globally through app.js?
Was this page helpful?