[Vuejs]-How to call a method in a Vue component from programmatically inserted component

0πŸ‘

βœ…

  1. Declare uploaders as an array of objects that contain all needed props for creation of MultipleFileUploaderPart.
  2. Use v-for on MultipleFileUploaderPart in the main MultipleFileUploader to reactively generate MultipleFileUploaderPart components
  3. Use $emit from MultipleFileUploaderPart to MultipleFileUploader to emit creation and deletion events so that MultipleFileUploader can add or remove elements in the uploaders array.
  4. Please don’t delete or create elements from DOM directly, let the VueJs do this work.

Leave a comment