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

palanikumar
Mega Sage

Hi,

You can add a if condition within the client function to check whether the new value is null. You can't instruct ng-change for a specific value.

Thank you,

Palani

Thank you,
Palani

HI Palani,

Thanks a lot for your response.

But what I observed is when the value is changed to null the client function is never called.

Thanks

HI Palani

My bad. Please ignore. It does called the client part. Issue with the script

My question itself is wrong here.

Regards

Shreyas

RaghavSh
Kilo Patron

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


Raghav
MVP 2023