Created
July 21, 2016 03:39
-
-
Save rob1121/9b7a113a92bbf89a4ae287174f339ba6 to your computer and use it in GitHub Desktop.
set a value on data key same name as props key to declare default value of props
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
export default { | |
data() { | |
return { | |
size: "100px" | |
} | |
}, | |
props: ['size'] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment