[Vuejs]-Call child method using slot

0👍

With a default slot this should work: this.$slots.default[0].context.close()

close() should be defined in your component’s methods section

If you are using named slots, just replace default[0]

👤Ngoral

Leave a comment