
Vueschool - Advanced Components: Exposing Internal State
Zakaria Sahmane, Daniel Kelly | Duration: 0:25 h | Video: H264 1920x1080 | Audio: AAC 48 kHz 2ch | 139 MB | Language: English
Learn the various way of exposing a component's internal state for fine-grained control from the parent component.
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.