Skip to content

Instantly share code, notes, and snippets.

@LuisHCK
Created August 9, 2019 03:24
Show Gist options
  • Save LuisHCK/e31fa562fb819d920ce35b72e0d8867f to your computer and use it in GitHub Desktop.
Save LuisHCK/e31fa562fb819d920ce35b72e0d8867f to your computer and use it in GitHub Desktop.

Componente1.vue (Padre)

<template>


</template>

<script>
export default {
  data() {
    return {
      foo: "hello"
    }
  }
}
</script>

Componente2.vue (Hijo)

<template>
  {{ value }}
</template>

<script>
export default {
  name: "componente2",
  
  props: {
    value: {
    }
  }
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment