From ac02e496310c16debfb35c2265800dd212eb4d7f Mon Sep 17 00:00:00 2001 From: Natalia Tepluhina Date: Tue, 28 May 2019 14:03:27 +0000 Subject: [PATCH] Added a note about v-slot directive --- doc/development/fe_guide/style_guide_js.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/doc/development/fe_guide/style_guide_js.md b/doc/development/fe_guide/style_guide_js.md index 060cd8baf7f..94dfdbdd073 100644 --- a/doc/development/fe_guide/style_guide_js.md +++ b/doc/development/fe_guide/style_guide_js.md @@ -544,14 +544,24 @@ Please check this [rules][eslint-plugin-vue-rules] for more documentation. ``` -1. Shorthand `:` is preferable over `v-bind` +2. Shorthand `:` is preferable over `v-bind` ```javascript // bad // good - + + ``` + +3. Shorthand `#` is preferable over `v-slot` + + ```javascript + // bad + + + // good + ``` #### Closing tags