Check out a free preview of the full Advanced Vue.js Features from the Ground Up course:
The "Challenge 10: Shared Instance" Lesson is part of the full, Advanced Vue.js Features from the Ground Up course featured in this preview video. Here's what you'd learn in this lesson:

In this challenge, students employ a Vue instance as a shared store.

Get Unlimited Access Now

Transcript from the "Challenge 10: Shared Instance" Lesson

[00:00:00]
>> Evan You: Obviously, this counter component is less pleasant than something like this, right? So you might be wondering why can't we just do this instead.
>> Evan You: Right, that looks much nicer and easier. Well, in fact, if we change the way we think about this object, we can do that.

[00:00:25]
>> Evan You: So the next exercise,
>> Evan You: Is about changing this into, so template is still the same. But if we go into 4.3, we'll reduce,
>> Evan You: The previous exercise.
>> Evan You: And instead, our state is now a Vue instance.
>> Evan You: And still, all the expectations are the same.