I'm writing an angular custom element. Rather than explaining the whole thing I have uploaded the code to the following url
https://github.com/arjunagl/angular-custom-elememtns
However when I add the code to a standard html page like the following
Hello World, this is where the custom element should come
I get the following error The selector "app-contact-form" did not match any elements
. Seems like its still trying to search by the actual name of the component rather than the name I registered it by customElements.define('my-contact-form', el);
. Furthermore even if I change the registration name to the same name app-contact-form
I get the same error
This is the command I run to generate the output ng build --prod --output-hashing none
and next I run npm run concat
to generate the output file.