Skip to content

Commit ac4ee8f

Browse files
committed
added type to injected ngRedux in first example
1 parent db5fd3e commit ac4ee8f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,14 @@ Angular 2 components:
5454
```typescript
5555
import { NgRedux } from 'ng2-redux';
5656

57+
interface IAppState {
58+
// ...
59+
};
5760
@Component({
5861
// ... etc.
5962
})
6063
class AppComponent {
61-
constructor(private ngRedux: NgRedux) {}
64+
constructor(private ngRedux: NgRedux<IAppState>) {}
6265

6366
// ...
6467
}

0 commit comments

Comments
 (0)