Angular · Junior · Question 12 of 75

What does (keyup.enter)="submit()" do?

Explanation

Angular supports key event filters: keydown.escape, keyup.shift.a and so on. This avoids checking event.key manually inside the handler.

Further reading

Problem with a question

Angular · Junior · question 12

Test yourself

Take the Angular · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz