Во Vue используется модель потока данных: "данные вниз, события наверх"
Но иногда всё-таки нужно послать событие дочернему компоненту, и в этом случае используется defineExpose. Это вполне соответствует лучшим практикам обычного HTML и DOM API
Основные use cases:
- открыть/закрыть модалку - установить фокус - сбросить форму - валидировать поле - обновить данные - включить/выключить аудио/видео/анимацию
Во Vue используется модель потока данных: "данные вниз, события наверх"
Но иногда всё-таки нужно послать событие дочернему компоненту, и в этом случае используется defineExpose. Это вполне соответствует лучшим практикам обычного HTML и DOM API
Основные use cases:
- открыть/закрыть модалку - установить фокус - сбросить форму - валидировать поле - обновить данные - включить/выключить аудио/видео/анимацию
#expose
BY Vue-FAQ
Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283
Durov said on his Telegram channel today that the two and a half year blockchain and crypto project has been put to sleep. Ironically, after leaving Russia because the government wanted his encryption keys to his social media firm, Durov’s cryptocurrency idea lost steam because of a U.S. court. “The technology we created allowed for an open, free, decentralized exchange of value and ideas. TON had the potential to revolutionize how people store and transfer funds and information,” he wrote on his channel. “Unfortunately, a U.S. court stopped TON from happening.”
Telegram announces Search Filters
With the help of the Search Filters option, users can now filter search results by type. They can do that by using the new tabs: Media, Links, Files and others. Searches can be done based on the particular time period like by typing in the date or even “Yesterday”. If users type in the name of a person, group, channel or bot, an extra filter will be applied to the searches.