IN-DEPTH
For each event that HTML elements have, there’s an analog ng-[event] directive. We can use these events to create some interaction in our prototype.
For example, if we wanted to show some text when somebody moves their mouse on top of a div , we could do something like:
You can also use events when handling form submission. Imagine your user is entering some information on a form and you want them to submit the information and display another piece of content after they press Enter.
For that, we could use ng-keyup as follows:
Other events we can use are ng-clic , ng-dblclick , ng-mousedown , ng-mouseup , ng-mouseover , ng-mouseenter , ng-mouseleave , ng-mousemove , ng-keydown , ng-keyup , ng-keypress , ng-submit , ng-focus , ng-blur , ng-copy…
