I have a banner that is loaded via an API call in my application that I don't have direct access to the template for. Due to the nature of the application I need to inject some code into it after it has been appended to the DOM. I'd like to do something like this once it has been loaded to place my own component among the banner:
const customLogoElem = document.getElementsByClassName('custom-logo').item(0);
customLogoElem.innerHTML = `<my-component></my-component>`;
The Angular element renders in the DOM but it doesn't include the template from <my-component />
, it's instead just blank. Is there some way I can do this?