Skip to content
Advertisement

Fire “data-ng-change” programatically or another way to change value of input on website using Angular JS

I am writing a userscript and unfortunately the website uses Angular JS which I don’t know.

There is code:

JavaScript

I want to change the value of that input programatically, like:

JavaScript

But it doesn’t work because it doesn’t fire data-ng-change=”$ctrl.updateFormFieldValue()” so the new value is not saved.

Please how can I do it?

Advertisement

Answer

If someone will look for the same thing, I solved it this way:

JavaScript
Advertisement