The two binding of AngularJS is not working on div. I want my div to be editable but it\'s not happening. Could anybody please suggest what could be wrong? The same binding
that's the correct behaviour. from angular docs "ng-model Is a directive that tells Angular to do two-way data binding. It works together with input, select, textarea. You can easily write your own directives to use ngModel as well."
in other words, if you want it to work with a div declare a directive which binds the model to the innerhtml of the div. docs here