Skip to content

Commit 2067f93

Browse files
committed
fix(README): tiny corrections and additions
1 parent dbc5f7f commit 2067f93

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ This library adds decorators that make it super easy to *automagically* save and
4141
export class AppModule {}
4242
```
4343

44-
## Custom configuration
44+
## Configuration
4545
As this project uses decorating functions, it's important to provide custom configuration in `NGXSTORE_CONFIG` before Angular application load. Here are some ways to do it:
46-
1. `<script>` in `index.html` (before Angular sources)
46+
1. Add `<script>` in `index.html` (before Angular sources)
4747
```html
4848
<script>
4949
var NGXSTORE_CONFIG = {
@@ -53,7 +53,7 @@ As this project uses decorating functions, it's important to provide custom conf
5353
};
5454
</script>
5555
```
56-
2. If you use webpack, you can provide global variable in `webpack.json`:
56+
2. If you use webpack, you can provide global variable in your `webpack.js` file:
5757
```javascript
5858
plugins: [
5959
new webpack.DefinePlugin({
@@ -111,6 +111,7 @@ As this project uses decorating functions, it's important to provide custom conf
111111
// upper changes won't be saved without the lines below
112112
this.someObject.save();
113113
this.arrayOfSomethings.save();
114+
this.someObject = this.someObject; // it can be considered as a bad code, but also will do the job
114115
}
115116
}
116117
```

0 commit comments

Comments
 (0)