January 2019
Intermediate to advanced
272 pages
7h 40m
English
This chapter covers
If money makes the world go around, then events make web apps go around. Without events, websites would be static HTML pages; with events, websites can become powerful applications that respond to user interactions.
In Vue applications, you will encounter two types of events: native DOM events and Vue custom events. In this chapter you’ll learn about both types of events and how to test them.
So far in this book, you’ve written unit tests for components in a Hacker News application. The Hacker News application is a great example of a real-world app. But there’s one problem—it doesn’t use any events!
Events are an important ...
Read now
Unlock full access