I'm making a UserScript to change an Angular ReactiveForm inputs values (as a development tool) ; I'm using the old classic :
$('myinput').val('myVal')
It's working great, all my inputs have a value but Angular doesn't detect the changes so I've tried to trigger the change event (I even tried keyup, dow, focus... with jQuery & native JavaScript dispatchEvent
) :
trigger('change') // on each inputs & on the form
But my ReactiveForm doesn't update its values, how can I perform this task?