Access config from JavaScript in custom widget

Does somebody know how to access config parameters in a custom widget from a lazy loaded javascript file? To make the custom widget more versatile I need to access configured parameters from a JavaScript file which was loaded by oc-lazy-load="[’/static/xy.js’]">. I’m obviously not a JavaScript nor an angular expert. Thanks for helping.

This should help you:

Thanks it works great. I alreay tried this before without success. I now relized that I have to assign the item again in the preview settings screen. Thanks again.