Weekly Vue News

By Michael Hoffmann (Mokkapps)

Weekly Vue News - #58 - Writeable Computed Property





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 (Mokkapps)
Michael Hoffmann (Mokkapps)
Hi 👋
First testers are testing my code snippet tool and I’m currently migrating the code to Nuxt 3, as I need server routes for Paddle payment integration.
Below you see an image of the current editor which I used to create the code snippet image for this newsletter.
Have a great week ☀️

Vue Tip: Writeable Computed Property
Computed properties are by default getter-only.
If you attempt to assign a new value to a computed property, you will receive a runtime warning.
In the rare cases where you need a “writable” computed property, you can create one by providing both a getter and a setter:
Now when you run this.fullName = 'John Doe', the setter will be invoked and this.firstName and this.lastName will be updated accordingly.
Curated Vue Content
Quote of the Week
Curated Web Development Content
📕 Research: quantifying GitHub Copilot’s impact on developer productivity and happiness
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