Skip to content

Instantly share code, notes, and snippets.

@LuisHCK
Created August 9, 2019 03:24
Show Gist options
  • Select an option

  • Save LuisHCK/e31fa562fb819d920ce35b72e0d8867f to your computer and use it in GitHub Desktop.

Select an option

Save LuisHCK/e31fa562fb819d920ce35b72e0d8867f to your computer and use it in GitHub Desktop.

Revisions

  1. LuisHCK created this gist Aug 9, 2019.
    36 changes: 36 additions & 0 deletions components.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,36 @@
    # 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>
    ```