title: Property Undefined on Vue Component
body: <p>Getting an error that <code>project</code> is <code>undefined</code> when trying to render out some text using <code>{{project.projectSummary}}</code> in my ProjectContainer component. I'm guessing when the component is initialized <code>project</code> is <code>undefined</code> because it shows up in VueTools fine on my component. </p>
  
  <p><a href="https://i.stack.imgur.com/HSzlo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HSzlo.png" alt="enter image description here"></a></p>
  
  <p>So next, I try to set <code>v-if="resource.project"</code> on the parent component</p>
  
  <pre class="lang-js prettyprint-override"><code>&lt;template v-if="resource.project"&gt;
  
      &lt;div class="resourceContainer"&gt;
  
          &lt;resource-card :resource="resource" :showResourceBtn="showResourceBtn"&gt;&lt;/resource-card&gt;
          &lt;project-container :project="resource.project"&gt;&lt;/project-container&gt;
  
      &lt;/div&gt;
  
  &lt;/template&gt;
  
  &lt;script&gt;
  import { firebaseAuth, database } from '../../database/database'
  import Vue from 'vue'
  import VueFire from 'vuefire'
  import ResourceCard from '../ResourceCard/ResourceCard'
  import ProjectContainer from './Project'
  
  Vue.use(VueFire);
  
  export default {
      name: 'Resource',
      components: {
          ResourceCard,
          ProjectContainer
      },
      data () {
          return {
              showResourceBtn: true
          }
      },
      computed: {
          fbUser () {
              return firebaseAuth.currentUser
          }
      },
      created () {
  
          // Load resource
  
          this.$bindAsObject('resource', database.ref('/resources/' + this.$route.params.resourceKey));
  
      }
  }    
  
  &lt;/script&gt;
  </code></pre>
  
  <p>But this isn't working either. Gives me a warning in the console that <code>Invalid prop: type check failed for prop "project". Expected Object, got Undefined.</code></p>
  
  <p>Any thoughts? Thanks</p>