此博客中的热门博文
The magic of scoped slots in Vue ✨ (3/4)
Hey! In yesterday's email I shared what I think is the key feature to making Vue components highly reusable: Scoped slots. But scoped slots are hard to grasp, and even more difficult to master. So today, we're going to make sure we understand them on a deep, intuitive level. Then, I'm going to introduce you to the magic ✨ of scoped slots. The trick is to think of them as functions. Slots are just functions We're going to recreate the functionality of slots, but we'll use a regular Javascript function that only returns HTML. This is the code we'll replicate: <!-- Parent --> < template > < div class = "modal-container" > < div class = "modal" > Content in the Parent < Child class = "mb-4" v-slot = "{ text }" > ...
🔥 (#166) Design Patterns and Proxies
Hey all! I just finished adding some new design patterns and recording a bunch of new videos for Clean Components Toolkit. I'll be launching this update on June 5th , in two weeks, with a big discount. Of course, if you already own it, you'll see the update soon. I'm adding in three new design patterns, bringing the total up to 21. I've also recorded a bunch of extra "bonus" content. Enjoy your tips for this week! — Michael Vue Tips Collection 2 Maybe you just want to stay on top of the latest features, remind yourself of interesting things Vue can do, and get daily inspiration. Vue Tips Collection is a beautiful book of 118 concise tips, as well as a daily email to get your creative juices flowing. Check out Vue Tips Collection 🔥 Proxy Basics Proxies are one of the strangest but most interesting parts of Javasc...
评论
发表评论