In a couple of recent tweets, Caleb Porzio demonstrated an easy way to pass JavaScript object properties to a child component without declaring a separate prop for each property.
Although it’s easy to initialise a vue component with some data, its not immediately obvious how we might go about resetting this data to it’s original state once it has been modified. In this post, we take a look at two easy options.