[Vuejs]-Best way to to pass the output of a function to child components in Vue

0👍

The computed properties don’t accept parameters that are involved in the calculation, In this case you could just use a method like :

 methods: {
        dataSender: function(groupName) {
          let array= []
          this.config.Groups.forEach( element => {
            if (element.name === groupName) array = element.Types
          });
          return array
        },
      }

Leave a comment