I have an angular container component named AppComponent. I want to load my non angular component HelloComponent inside AppComponent.
My actual goal is to load existing old components into angular 6 components.
export class HelloComponent extends HTMLElement {
constructor() {
super();
}
connectedCallback() {
this.innerHtml = `<h1>Native component loaded successfully</h1>`;
//init and load component.
}
}
my angular code is as follows:
<angular-app>
<hello-comp></hello-com>
</angular-app>
How do I inject this HelloComponent into this class.
html customElements does not work.