title: Nested vue.js instances/elements
body: <p>This may sound like a real noob question, but I'm pretty new to MVVM... or even MVC in JS, so sorry in advance.</p>
  
  <p>I'm playing about with vue.js, and loving the simplicity of it so far. But for what I am trying to do, I think I need to go about it a different way.</p>
  
  <p>I want to nest Vue instances/elements inside each other, but of course, the parent will then use the child when it reads through the DOM on init.</p>
  
  <p>For the sake of arguments, below is an example of what I mean, I am not doing anything like this, but this is the simplest way to example what I mean: </p>
  
  <pre><code>&lt;body&gt;
      {{ message }}
      &lt;div id="another"&gt;
          {{ message }}
      &lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>Then my JS for example would be:</p>
  
  <pre><code>new Vue({
      el: "body",
      data: {
          message: "I'm the parent"
      }
  });
  
  new Vue({
      el: "#another",
      data: {
          message: "I'm the child"
      }
  });
  </code></pre>
  
  <p>The outcome would be:</p>
  
  <pre><code>&lt;body&gt;
      I'm the parent
      &lt;div id="another"&gt;
          I'm the parent
      &lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>Now I completely understand why it is doing this and in fact, it should do this, but my example is just trying to illustrate how I would do something like this?</p>
  
  <p>In my real life project, I have a v-class on my body that changes when stuff happens in the body (in numerous places) but of course my body will also want other instances of vue that do other stuff.</p>
  
  <p>how would I go about nesting? Is there feature in vue to deal with this? Do I need to deal with components? Or maybe, fetch the body from within a child element (e.g. like jQuery would with $("body")) then manipulate it within the Vue instance?</p>
  
  <p>Hope this question isn't too stupid and someone can point me in the right direction.</p>
  
  <p>Thanks</p>