Created
October 27, 2017 23:34
-
-
Save allaniftrue/ddce36830ea28e8267b3f6d99d255fe7 to your computer and use it in GitHub Desktop.
Adding Vuejs Props: Passing A String Value
This file contains 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> | |
{{text}} | |
</template> | |
<script> | |
export default { | |
props: ['text'] | |
} | |
</script> |
This file contains 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
<Component :text="'Random String'" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment