Courses

Advanced Components: Exposing Internal State

Advanced Components: Exposing Internal State

When developing a Vue application, you may occasionally need to expose a component's internal state. This allows the component consumer to finely control it. One common scenario where this is useful is with modal overlays. Although a modal typically has its own trigger, there may be situations where you need to toggle the same modal with a trigger external to the component. Throughout this course, we will explore various techniques for exposing a component's internal state in Vue, as well as ways to achieve the same result using Vue's utilities without explicitly exposing the state.

Difficulty: Intermediate

Duration: 26m

Chapters