Skip to content

Commit 3205cd5

Browse files
author
Simon Touitou
authored
Merge pull request #155 from corentinleberre/patch-1
Lint & Update README.md
2 parents aad84b8 + 2090045 commit 3205cd5

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ Usage:
9999

100100
```ts
101101
import { Component, ChangeDetectionStrategy } from '@angular/core';
102+
import { store } from './store/counter';
102103

103104
@Component({
104105
changeDetection: ChangeDetectionStrategy.OnPush,
@@ -140,9 +141,7 @@ import { comparer } from 'mobx';
140141
{{ store.value }} - {{ store.computedValue }}
141142
<button (click)="store.action">Action</button>
142143
</div>
143-
<div
144-
*mobxReaction="getParity.bind(this); options: { name: 'parity reaction', equals: comparer.shallow }"
145-
>
144+
<div *mobxReaction="getParity.bind(this); options: { name: 'parity reaction', equals: comparer.shallow }">
146145
{{ parity }}
147146
</div>
148147
`
@@ -263,7 +262,7 @@ See the `projects` folder, specifically these files:
263262

264263
To run the examples, clone this repo and run:
265264

266-
```
265+
```shell
267266
$ npm install -g @angular/cli
268267
$ npm install
269268
$ npm run build
@@ -278,4 +277,3 @@ Important things to always consider when changing code in this library:
278277
- Keep backwards compatibility. Don't force users to refactor their code, even if it means adding a new API instead of changing an exsiting one.
279278
- Keep SEMVER. If breaking changes is unavoidable - increase a major version. New features, however small should increase a minor version, and patch is for bugfixes/performance/refactoring
280279
- Think about bundle size and speed
281-

0 commit comments

Comments
 (0)