summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-03-13 10:21:06 +0000
committerFilipa Lacerda <filipa@gitlab.com>2017-03-13 10:21:06 +0000
commitde16915b214f04884e8eab8c1ada52a2a4818f7a (patch)
tree86e28db4f675a3260b7701c87382ed4b6072a8b6
parent8e6c9e9bd9eab9a68364b8b3e5ab87dde71397d6 (diff)
downloadgitlab-ce-29326-update-documentation.tar.gz
Fix bad code example29326-update-documentation
-rw-r--r--doc/development/frontend.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/development/frontend.md b/doc/development/frontend.md
index c5ee44988ac..e7add17fe2d 100644
--- a/doc/development/frontend.md
+++ b/doc/development/frontend.md
@@ -66,7 +66,7 @@ Let's look into each of them:
This is the index file of your new feature. This is where the root Vue instance
of the new feature should be.
-The Store and the Service should be loaded in this file and provided as a prop to the main component.
+The Store and the Service should be imported and initialized in this file and provided as a prop to the main component.
Don't forget to follow [these steps.][page_specific_javascript]
@@ -353,7 +353,7 @@ Good:
```javascript
class Foo {
constructor(opts) {
- opts.container.querySelector('.bar');
+ document.querySelector(`${opts.container} .bar`);
}
}