angular #name="ngModel" code example
Example 1: what is ngmodel property binding
<input [(ngModel)]="username">
<p>Hello {{username}}!</p>
Example 2: ngmodel div angular 7
NgModel expects the bound element to have a value property, which div s don't have. That's why you get the No value accessor error. I don't know if the input event is supported on all browsers for contenteditable . You could always bind to some keyboard event instead.