Weekly Vue News

By Michael Hoffmann

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





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
Michael Hoffmann
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
Michael Hoffmann @mokkapps

This weekly Vue newsletter gives you high-quality tips and curated content to help you become a Vue.js expert.

Additionally, it provides content about web development topics like TypeScript, JavaScript, HTML5, and CSS3.

Published each Monday since June 2021.

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