Hooks not get triggered in Angular

Tags: #<Tag:0x00007efc70436d90>

Hi,

I was using hooks to do some functionalities in my application previously, now with the latest version of @handsontable/angular is the feature has been removed or a different approach has to be followed to achieve that.

I had created demos for both the senerios, please check and let me know the best possible solution to fix it.

https://stackblitz.com/edit/angular-erdzuq?file=src%2Fapp%2Fapp.module.ts -works fine

https://stackblitz.com/edit/angular-lqnka2?file=src%2Fapp%2Fapp.module.ts -not working

the code used in both the examples are same but only the version of @handsontable/angular differs.

Thanks,
Bala

Hi @ebalasubramanian24

Please tell me what is the bug scenario. How can I replicate the issue?

I get formula bugs in the same fields in table for both examples.

Sorry for not mentioning that, actually what you have to do is, you have to right click on the table and insert a row then in console the row number has to get printed.

The first example(with @handsontable/angular version 1.0.0 -beta5) prints correct and the second (with @handsontable/angular version 2.0.0) doesn’t. That’s my issue.

EDIT: https://stackblitz.com/edit/angular-lqnka2?file=src%2Fapp%2Fapp.component.ts

Here’s an updated example. Docs

Thank you so much @aleksandra_budnik … it fixed my issue.

One more help… The example what I shared has the issue with formula, what I actually want is, if the fields from where the formula gets value is empty mean the fields with formula has to 0 or null, it should not show as like #VALUE!, is there a way to fix that, if so please help me to fix that.

Hi @ebalasubramanian24

you’d need to change the null to 0 in the col1, col2 values.