View profile

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

Michael Hoffmann (Mokkapps)
Michael Hoffmann (Mokkapps)
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
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 (Mokkapps)
Michael Hoffmann (Mokkapps) @mokkapps

Hi πŸ‘‹

My name is Michael Hoffmann and I'm a Senior Frontend Developer, Freelancer and Blogger.

I focus on Vue.js, JavaScript, TypeScript and Spring Boot. Occasionally I also give career & freelancer advice.

My weekly emails reflect this preference.

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