Vue 2 Internal Features from the Ground Up Challenge 10: Shared Instance
Transcript from the "Challenge 10: Shared Instance" Lesson
>> 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.
>> 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.