Incorporating the Microsoft.Maps.loadModule function within a directive for AutoSuggest functionality has posed an issue as the script loads asynchronously and my directive fires before the script is fully loaded. I am seeking assistance on how to effectively trigger the Microsoft.Maps.loadModule function inside the directive once the script is completely loaded. Any suggestions or alternative solutions would be greatly appreciated.
Thank you!