Skip to content

Trigger the digest cycle in callback events #201

@chengtie

Description

@chengtie

(I have asked the same question in handsontable, but nobody answered so far)

I want to create a corresponding textarea besides a handstontable, such that modifying the table has impact to the text and vice-versa.

Here is the JSBin.

One thing I realise is that, adding rows will not fire the watcher of dataJSON. So I use $scope.$digest() in the callback onAfterCreateRow to reflect the change of adding rows. But it raises an error Uncaught TypeError: Cannot set property 'forceFullRender' of null:

screen shot 2017-02-01 at 17 07 55

Does anyone know how to solve this? I think it is a serious problem, if 1) adding/removing rows/columns does not fire the watcher; 2) and we cannot well trigger digest cycle in their callback events.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions