You can also add (keyup.enter)="xxxx()"