Is the ng model allowed inside the table <td> element?
Is ng model allowed inside table element? Will angular automatically update the model if I change a specific column (i.e. View)?
If you create table cells that are directly editable using the HTML attribute contenteditable , the ng model will not work automatically, because by default it is used only for form elements.
You can work with contenteditable . There is a working example of how to do this on the angular website at http://docs.angularjs.org/api/ng.directive:ngModel.NgModelController
ng-model is allowed wherever typical form elements exist that can use the directive ( input, select and textarea )
One thing that I will say about the ng model, which can make it somewhat complicated, is that you want to bind the ng-model to an object property, not just a sphere variable. I came across a few examples when I associate $ scope.foo with an ng model and use it in an input control. Then, if you clear the input field, the binding will be lost and it will stop updating the variable. Use something like $ scope.fooObj.modelProp, where fooObj is an object and it will work fine.