minor fixes
This commit is contained in:
parent
f2636ee512
commit
9ba208f6ec
1 changed files with 2 additions and 2 deletions
|
@ -206,7 +206,7 @@ export function sayHi() {
|
||||||
|
|
||||||
Here, `admin.js` exports the `config` object (initially empty, but may have default properties too).
|
Here, `admin.js` exports the `config` object (initially empty, but may have default properties too).
|
||||||
|
|
||||||
Then in `init.js`, the first script of our app, we set `config.user`:
|
Then in `init.js`, the first script of our app, we import `config` from it and set `config.user`:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
// 📁 init.js
|
// 📁 init.js
|
||||||
|
@ -214,7 +214,7 @@ import {config} from './admin.js';
|
||||||
config.user = "Pete";
|
config.user = "Pete";
|
||||||
```
|
```
|
||||||
|
|
||||||
...Now the module is configured.
|
...Now the module `admin.js` is configured.
|
||||||
|
|
||||||
Further importers can call it, and it correctly shows the current user:
|
Further importers can call it, and it correctly shows the current user:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue