diff --git a/client/src/pages/guide/english/vue/components/index.md b/client/src/pages/guide/english/vue/components/index.md index 4122375940..d05f2e875e 100644 --- a/client/src/pages/guide/english/vue/components/index.md +++ b/client/src/pages/guide/english/vue/components/index.md @@ -66,3 +66,21 @@ as we setted `iconSrc` or `featureTitle` as they were valid attributes. And the purpose of Vue.js components is this: increment your toolbox with your own tools. +### Props + +Props are custom attributes you can register on a component. When a value is passed to a prop attribute, it becomes a property on that component instance. To pass a title to our blog post component, we can include it in the list of props this component accepts, using a props option: + +```js +Vue.component('feature-card', { + props: ['title'], + template: '