function populateInputElement(inputString) {
  controller.ngInputElement.val(inputString).triggerHandler('input');
  $timeout.flush();
  pageScope.$apply();
}
Populates the inputElement with a value and triggers the input events.