diff options
-rw-r--r-- | doc/development/fe_guide/style_guide_js.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/development/fe_guide/style_guide_js.md b/doc/development/fe_guide/style_guide_js.md index cc5322f9afe..c8d23609280 100644 --- a/doc/development/fe_guide/style_guide_js.md +++ b/doc/development/fe_guide/style_guide_js.md @@ -311,7 +311,7 @@ A forEach will cause side effects, it will be mutating the array being iterated. #### Alignment 1. Follow these alignment styles for the template method: - 1. With more than one attribute, all attributes should be in a new line: + 1. With more than one attribute, all attributes should be on a new line: ```javascript // bad <component v-if="bar" @@ -329,7 +329,7 @@ A forEach will cause side effects, it will be mutating the array being iterated. Click me </button> ``` - 1. With only one attribute, it can be inline with the open tag: + 1. The tag can be inline if there is only one attribute: ```javascript // good <component bar="bar" /> |