Two way data binding of the whole data in grid can be obtained by

  • Assign data to an object property inside the controller i.e., vm.myData = data;.
  • Assign model property name along with object name in dot notation as a string e.g., 'vm.myData' to

Try to edit the cells, sort the columns and filter the data.

Even though this example is not useful as such, whole data binding is useful in other use cases like form editing.

Copyright @ 2016-2022 Paramvir Dhindsa (