ng-change question

ShAn21
Tera Guru

Hi Team,

In portal widgets I see the ng-change is invoked only when old value is replaced by new value.

How can we invoke client functions when the value is changed to null?

I am relative beginner in portal so any clue is appreciated.

Best regards

1 ACCEPTED SOLUTION

RaghavSh
Kilo Patron

ng-change should respond to null as well, can you share your script


Raghav
MVP 2023

View solution in original post

5 REPLIES 5

Mohith Devatte
Tera Sage
Tera Sage

Hello,

If there is a empty value also ng-change actually responds and send the empty value to client controller.

please try to alert the new value when you are trying to make it empty and the alert must come empty .

Please accept this solution if it solves your issue