Fix bad code example
This commit is contained in:
parent
8e6c9e9bd9
commit
de16915b21
|
@ -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
|
This is the index file of your new feature. This is where the root Vue instance
|
||||||
of the new feature should be.
|
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]
|
Don't forget to follow [these steps.][page_specific_javascript]
|
||||||
|
|
||||||
|
@ -353,7 +353,7 @@ Good:
|
||||||
```javascript
|
```javascript
|
||||||
class Foo {
|
class Foo {
|
||||||
constructor(opts) {
|
constructor(opts) {
|
||||||
opts.container.querySelector('.bar');
|
document.querySelector(`${opts.container} .bar`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue