Skip to content

Commit 9006012

Browse files
committed
Merge pull request #69 from nexus-uw/patch-1
added type to injected ngRedux in first example
2 parents db5fd3e + ac4ee8f commit 9006012

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)