View profile

Weekly Vue.js News - #45 - Provide fallback content for slots

Michael Hoffmann (Mokkapps)
Michael Hoffmann (Mokkapps)
Hi πŸ‘‹
I’m still working on rewriting my portfolio with Nuxt 3. I will soon publish a new blog post about creating custom code blocks in Nuxt Content v2.
In this issue, I show you how to provide fallback content in Vue slots and how you can make large JavaScript numbers more readable using numeric separators. Additionally, you’ll find some interesting articles and tools that will help you to become a better Vue developer!
Have a great week β˜€οΈ

Michael Hoffmann
🀩 Look at all the content that I've created since last year πŸ’ͺ

My follower numbers are still not as high as expected but it is going in the right direction πŸ™ƒ
Vue Tip: Provide fallback content for slots
There are cases when it’s useful to specify fallback (i.e. default) content for a slot, to be rendered only when no content is provided.
A typical use case is a slot inside a <button> where we define a fallback if no text content is provided.
Vue News
How To Structure a Massive Vuex Store for a Production App
Coding Better Composables
Building Vue components in TypeScript using Storybook
JavaScript Tip
Quote of the week
Tools & Misc
TypeScript Error Translator
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