Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Calling a Method from Outside of the Component

<!-- Parent.vue -->
<template>
  <ChildComponent ref="child" />
</template>

// Somewhere in Parent.vue
this.$refs.child.method();
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #Calling #Method #Outside #Component
ADD COMMENT
Topic
Name
4+8 =