Weekly Vue News

By Michael Hoffmann

Weekly Vue.js News - #49 - Check if slot is empty





Subscribe to our newsletter

By subscribing, you agree with Revue’s Terms of Service and Privacy Policy and understand that Weekly Vue News will receive your email address.

Michael Hoffmann
Michael Hoffmann
Hi πŸ‘‹
In this issue, I have curated a few interesting articles and tweets to help you in your journey to become a Vue expert.
Have a great week β˜€οΈ

Michael Hoffmann
πŸ‘€ Another sneak peek for my new portfolio website rewritten in Nuxt 3 πŸ’š

πŸ’š Look at the beautiful Table of Contents component in the sidebar
πŸ’š I'm so in love with the new version https://t.co/7xZ3hfGsXM
Vue Tip: Check if slot is empty
Inside the template, you can use $slots, an object representing the slots passed by the parent component.
Usage of slots inside <script setup> should be relatively rare, since you can directly access them as $slots in the template.
In the rare case where you need them, you can use the useSlots helper.
Vue News
State of Vue 2022: Amsterdam recap
Vue Report: Amsterdam 2022
JavaScript Tip: JavaScripp: Use an array to combine several validationst Ti
A typical use case is to combine several validations using the && operator:
In my opinion, combining several validations in an array using the .every method is a cleaner solution:
Web Development News
Quote of the week
Did you enjoy this issue? Yes No
Michael Hoffmann
Michael Hoffmann @mokkapps

This weekly Vue newsletter gives you high-quality tips and curated content to help you become a Vue.js expert.

Additionally, it provides content about web development topics like TypeScript, JavaScript, HTML5, and CSS3.

Published each Monday since June 2021.

In order to unsubscribe, click here.
If you were forwarded this newsletter and you like it, you can subscribe here.
Created with Revue by Twitter.
Holzapfelkreuther Straße 19, 81375 Munich, Germany