I have created a custom web component and I want to use it in my Angular project. But the problem is I am binding [(ngModel)] and it is an attribute for js so it is lowercasing it to [(ngmodel)]. Due to which Angular is not able to identify and hence not binding it. Need immediate help in this case.
class FormAngInput extends HTMLElement {
constructor(){
super()
}
connectedCallback() {
var template = `
<style>
.no {
color: green;
}
</style>
<p class='no'> Shadow DOM</p>
<input type='text' value='test'
[(ngModel)]='numberValue' />
`
this.innerHTML = template
} } customElements.define("form-ang-input", FormAngInput);