Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trigger the digest cycle in callback events #201

Open
chengtie opened this issue Feb 2, 2017 · 0 comments
Open

Trigger the digest cycle in callback events #201

chengtie opened this issue Feb 2, 2017 · 0 comments

Comments

@chengtie
Copy link

chengtie commented Feb 2, 2017

(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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants