Handling events

Forms are not the only way we receive values from users. Simple DOM interactions, mouse clicks, and keyboard interactions can raise events that could lead to a request from our users. Of course, we have to handle their requests one way or another. There are numerous events that we can't talk about in this book. What we can do is look at basic keyboard and mouse events.

Get TypeScript 2.x for Angular Developers now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.