code: function dataWatchFn(newData, oldData) {
                          if (newData !== oldData){
                              if (!scope._config.disabled) {
                                  scope._config.refreshDataOnly ? scope.api.update() : scope.api.refresh(); // if wanted to refresh data only, use update method, otherwise use full refresh.
                              }
                          }
                      }
docs: Watching on data changing