View profile

Weekly Vue.js News - #51 - Global Store On The Vue App Instance

Michael Hoffmann (Mokkapps)
Michael Hoffmann (Mokkapps)
Hi πŸ‘‹
I’m on our honeymoon for the next two weeks 🌴
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 β˜€οΈ

Vue Tip: Define component name with <script setup>
Vue provides globalProperties on the app instance, an object that can be used to register global properties:
msg can be accessed on any component instance inside the application:
As with anything global, this should be used sparingly. If your app state is too complex, it’s better to use Pinia.
Vue Articles
JavaScript Tip: Check if an object is empty
We can use the built-in Object.keys method to check for an empty object.
Web Development Articles
Quote of the week
Tools & Misc
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