ng-model-on-event applied to query-input