View profile

Weekly Vue News - #59 - Watch multiple properties with their previous value

Michael Hoffmann (Mokkapps)
Michael Hoffmann (Mokkapps)
Hi πŸ‘‹
I soft-launched my code snippet image tool: CodeSnap.dev πŸ₯³
Feel free to give it a try and provide feedback!
Have a great week β˜€οΈ

Vue Tip: Watch multiple properties with their previous value
It’s possible to add an array of multiple sources to the watch hook.
We can also access the previous values of each source:
Curated Vue Content
JavaScript Tip: Add leading zeros to a string
The padStart() method pads the current string with another string (multiple times, if needed) until the resulting string reaches the given length. The padding is applied from the start of the current string.
The padStart() method accepts the following 2 parameters:
  • The length of the resulting string once the current str has been padded. If the value is less than str.length, then str is returned as-is.
  • The string to pad the current str with.
Curated Web Development Content
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