SyntaxFix
Write A Post
Hire A Developer
Questions
For angular 6 there is a new way of doing it. On your input tag add
(keyup.enter)="keyUpFunction($event)"
Where keyUpFunction($event) is your function.
keyUpFunction($event)