Open raz-mt opened 4 months ago
Hey, a loader is required to ensure that the library works as expected.
I understand that you want to make an API request to obtain the apiKey and then create your loader. In this case, try using Angular's APP_INITIALIZER hook to extract your apiKey. Then, create your loader and use it in your module.
I believe my js is loading before my markup, and am using a
as suggested. The issue now being: I don't wish to use loader as there are a range of ways to load the api, which conveniently address my issue as stated above.
I get runtime error
when your lib attempts to inject the dep. Could we make the injection optional so that I can utilize other options?