An even better solution could be:
(keydown.enter)="onSearchButtonClick()"
So no "textChangedVal()" method would be needed.