Plans from $25/month
This lesson is for members. Join us?
Subscribe now and get immediate access to this course, 30 more and all future Vue.js courses!
Typing Template Refs
In this lesson, we learn how to work with Vue’s template refs in TypeScript. Since template refs only exist after the component is mounted, it’s necessary to type template refs with a union type that includes the DOM element type as well as null.
Links