Hi,
I have a component and a clientlib for the same. When the component loads, I want to call an ajax API call in the js file (in clientlib) and wait for the result.
1. After the result is obtained, I want to load the component (i.e. execute the html file). How can I achieve this?
2. I will have the API result in clientlib js file. How can I access the same inside HTL of that component?
Please help.