summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2018-03-01 11:14:08 +0000
committerFilipa Lacerda <filipa@gitlab.com>2018-03-01 11:14:08 +0000
commit30264317ebd98a6f3127366b5137eb7dd16686ec (patch)
tree6918085a3577d12e09bf302998a654341a76fbb1
parentedbf6204c013f125447a8b0f1310400336f39628 (diff)
downloadgitlab-ce-fl-document-key-vue.tar.gz
Clean up docsfl-document-key-vue
-rw-r--r--doc/development/fe_guide/style_guide_js.md8
1 files changed, 0 insertions, 8 deletions
diff --git a/doc/development/fe_guide/style_guide_js.md b/doc/development/fe_guide/style_guide_js.md
index eec1e6122b3..7b5fa6ca42f 100644
--- a/doc/development/fe_guide/style_guide_js.md
+++ b/doc/development/fe_guide/style_guide_js.md
@@ -571,12 +571,6 @@ When using `v-for` you need to provide a *unique* `:key` attribute for each item
</div>
```
-1. When using `v-for` with `template` the child item needs a `:key` attribute, since Vue doesn't allow for the `:key` to be in the `template` element.
- ```html
- <template v-for="(item, index) in items">
- <span :key="index"></span>
- </template>
- ```
1. When using `v-for` with `template` and there is more than one child element, the `:key` values must be unique. It's advised to use `kebab-case` namespaces.
```html
@@ -600,8 +594,6 @@ When using `v-for` you need to provide a *unique* `:key` attribute for each item
</span>
</div>
```
- * Do not reuse the parent `:key` in the nested `v-for`
-
Useful links: