I\'m creating a custom element in Angular 2.0 (), and when I include the ngModel attribute on the component, I\'m immediately hit with the foll
I got the same problem. I figured that I tried to two-way bind my variable to a element and then get that value in an attribute:
Username is required.
As you can see, there's no way for the view to modify the _hidden variable in the model. Fixing the binding to one-way worked:
Username is required.
Notice the change from [(ngModel)] to (ngModel).