Загрузка...

Exposing Parts Of Your Vue Component?

📕 Nuxt Course: https://www.learnnuxt.dev/
https://checkout.teachable.com/secure/1251673/checkout/order_km5x8ssv?coupon_code=YOUTUBE

In this video we take a look at the defineExpose complier macro with Vue.

Components using script setup are closed by default - i.e. the public instance of the component, which is retrieved via template refs or $parent chains, will not expose any of the bindings declared inside script setup.

To explicitly expose properties in a script setup component, use the defineExpose compiler macro.

Other Resources
📕 Vue 3 Course: https://johnkomarnicki.gumroad.com/l/tqrmw
🤖 Website: https://johnkomarnicki.com/
🐦 Twitter: https://twitter.com/john_komarnicki

Видео Exposing Parts Of Your Vue Component? канала John Komarnicki
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять