From 08a9f1da74e4e9b1311abd3af501332f1dc79b39 Mon Sep 17 00:00:00 2001 From: Nigel Cheok Date: Thu, 22 Nov 2018 21:10:49 +0800 Subject: [PATCH] Added 'single file components' to components readme (#22563) --- guide/english/vue/components/index.md | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/guide/english/vue/components/index.md b/guide/english/vue/components/index.md index 7c66dc3cef..8a2406be8d 100644 --- a/guide/english/vue/components/index.md +++ b/guide/english/vue/components/index.md @@ -84,3 +84,32 @@ Once a prop is registered, you can pass data to it as a custom attribute, like t ``` + +### Single File Components + +Instead of declaring many components in a single file resulting in a long spagetti code. You may want to modularize your components by having different files. (ie. more info: https://vuejs.org/v2/guide/single-file-components.html) + +Enclose your template in a