title: Emit variable not passing array from child to parent?
body: <p>I am trying to pass an array of tags from the child component to the parent component using emit. The emit is registering and firing the method in the parent component, but when I log the argument that I passed via emit it returns undefined. I am not sure what I am doing wrong because I have passed objects via emit before.  </p>
  
  <p>I have tried trying to convert the array to an object, passing it as the this value of the same name without storing it as a variable within the method itself.  </p>
  
  <pre><code>//edittagsform
  &lt;template&gt;
      &lt;div class="card"&gt;
        &lt;div class="card-body"&gt;
          &lt;div class="form-inputs"&gt;
            &lt;h5&gt;Add tags:&lt;/h5&gt;
            &lt;tagsField v-on:incoming="updateTagsList()"/&gt;&lt;br&gt;
            &lt;h5&gt;Current tags:&lt;/h5&gt;
            &lt;div v-if="tags.length &gt; 0"&gt;
              &lt;tagsList v-for="tag in tags" v-bind:tag="tag"/&gt;
            &lt;/div&gt;
            &lt;div v-else&gt;
              &lt;p&gt;No tags associated&lt;/p&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
  &lt;/template&gt;
  
  &lt;script&gt;
  import tagsField from './tagsField'
  import tagsList from './tagsList'
  
  export default {
    data: function () {
      return {
        tags: {
          tag: this.tagList,
      }
    },
    props: ['tagList'],
    name: 'editTagsForm',
    methods: {
      updateTagsList(newTag) {
        console.log(newTag)
        this.tags.push(newTag)
      }
    },
    components: {
        tagsField,
        tagsList
    }
  }
  &lt;/script&gt;
  
  &lt;style scoped&gt;
  &lt;/style&gt;
  </code></pre>
  
  <pre><code>//tagsField.vue
  &lt;template&gt;
  &lt;div class="input-group"&gt;
      &lt;form&gt;
          &lt;input-tag v-model="newTags"&gt;&lt;/input-tag&gt;&lt;br&gt;
          &lt;input type="button" value="submit" v-on:click="addTag()" class="btn btn-secondary btn-sm"&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  &lt;/template&gt;
  
  &lt;script&gt;
  export default {
    data: function () {
      return {
        newTags: [],
      }
    },
    methods: {
        addTag() {
            for(var i = 0; i &lt;= this.newTags.length; i++){
                var arr = this.newTags[i]
                this.$emit('incoming', {
                    arr
                })
            }
          }
      }
  }
  &lt;/script&gt;
  
  &lt;style scoped&gt;
  &lt;/style&gt;```
  </code></pre>