title: VueJs how to get data from Vue.component
body: <p>I want to know how to get data from Vue.component and send to 
  this >>var app = new Vue({ })&lt;&lt;
  this is my code </p>
  
  <pre><code>Vue.component('my-form', {
  template: '#my-form',
  props:['ddTechtemp'],
       data: function () {
       return {
          isCores: app.testCorres,
          activeClass: 'isCorrespon',
          errorClass: 'isTech',
          tempData : {cell1 : "",
                      cell2 : "",
                      cell3 : "",
                      cell4 : "",
                      cell5 : "",
                      cell6 : ""
          },
      }
  },
  watch:{
      tempData:{
          handler:function(newVal,oldVal){
  
              app.ddTechtemp = newVal;
  
          },
          deep:true,
      }
  
  },
  methods:{
  
  }});
  </code></pre>
  
  <p>I want to get data from above code and send to this code <code>var app = new Vue({ data: Vue.component.data})
  </code>
  Anyone understand me please help.Thank you</p>