In this lesson, learn how to handle errors within a Vue component. To catch an error thrown in the current component, good ol’ fashion try/catch will work great. You can enhance the process by storing the thrown error into some local state to display the error message to the page from within the component.
Links