Last active
December 19, 2019 12:40
-
-
Save hamiltongabriel/9dfbddc1fb4a3c23fb06bd84c45f7e5a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| export default { | |
| methods: { | |
| funcaoEnviaEmit () { | |
| this.$emit('jogadores', this.jogadores) | |
| } | |
| } | |
| } | |
| </script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| export default { | |
| props: { | |
| type: Array, | |
| default: () => [] | |
| } | |
| } | |
| </script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <filho @jogadores="nomeDaFuncaoQueVaiReceberOValor"/> | |
| <irmao :jogadores="jogadores" | |
| </template> | |
| <script> | |
| export default { | |
| data: () => ({ | |
| jogadores: [] | |
| }), | |
| methods: { | |
| nomeDaFuncaoQueVaiReceberOValor (jogadores) { | |
| this.jogadores = jogadores | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment