const myField = document.querySelector('[id^="text-field-"]'); myField.value = 'My new value'; angular.element(myField).trigger('change');