osgi config to javascript
How to Fetch OSGI configurations value in JavaScript ?
How to Fetch OSGI configurations value in JavaScript ?
There are two ways.
1. OSGI configuration data in Sightly, where your JavaScript will pickup configuration from there. An example implementation can be found here https://sourcedcode.com/blog/aem/with-htl-pass-data-from-aem-backend-to-javascript
2. OSGI configuration data via Sling Servlet. You can create a servlet that can be utilized by the JavaScript business logic. An Ajax request should be sufficient to obtain the OSGI configuration data.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.