Vue 2 Internal Features from the Ground Up

Challenge 10: Shared Instance

Evan You

Evan You

Creator of Vue.js
Vue 2 Internal Features from the Ground Up

Check out a free preview of the full Vue 2 Internal Features from the Ground Up course

The "Challenge 10: Shared Instance" Lesson is part of the full, Vue 2 Internal 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.

Preview
Close

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.

Learn Straight from the Experts Who Shape the Modern Web

  • In-depth Courses
  • Industry Leading Experts
  • Learning Paths
  • Live Interactive Workshops
Get Unlimited Access Now