Skip to content

Commit d5f5940

Browse files
Merge pull request #7 from SethDavenport/chore/module-naming
Update module naming to be consistent with other modules
2 parents 523fb89 + 1e83b7e commit d5f5940

File tree

5 files changed

+12
-11
lines changed

5 files changed

+12
-11
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,16 @@ approaches, but if you are already using
5454
it into your project, then you would do something like this:
5555

5656
```typescript
57+
import { NgReduxModule } from '@angular-redux/store';
58+
import { NgReduxFormModule } from '@angular-redux/form';
59+
5760
@NgModule({
5861
imports: [
5962
BrowserModule,
6063
ReactiveFormsModule,
6164
FormsModule,
62-
NgReduxForms,
63-
],
64-
providers: [
65-
NgRedux,
65+
NgReduxFormModule,
66+
NgReduxModule,
6667
],
6768
bootstrap: [MyApplicationComponent]
6869
})
@@ -83,7 +84,7 @@ const store = create(reducers, <MyApplicationState> {});
8384
BrowserModule,
8485
ReactiveFormsModule,
8586
FormsModule,
86-
NgReduxForms,
87+
NgReduxFormModule,
8788
],
8889
providers: [
8990
provideReduxForms(store),

examples/source/module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
Connect,
1414
ConnectArray,
1515
FormStore,
16-
NgReduxForms,
16+
NgReduxFormModule,
1717
composeReducers,
1818
defaultFormReducer,
1919
} from '../../source';
@@ -226,7 +226,7 @@ function todoReducer(state = todos, action: {type: string, payload?}) {
226226
CommonModule,
227227
ReactiveFormsModule,
228228
FormsModule,
229-
NgReduxForms,
229+
NgReduxFormModule,
230230
],
231231
declarations: [
232232
FormExample,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@angular-redux/form",
3-
"version": "5.1.0-beta.0",
3+
"version": "5.1.0-beta.1",
44
"description": "Build Angular 2 forms with Redux",
55
"devDependencies": {
66
"@angular/common": "^2.4.2",

source/connect.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import {
2929
import {composeReducers} from './compose-reducers';
3030
import {defaultFormReducer} from './form-reducer';
3131
import {provideReduxForms} from './configure';
32-
import {NgReduxForms} from './module';
32+
import {NgReduxFormModule} from './module';
3333

3434
import {
3535
logger,
@@ -140,7 +140,7 @@ describe('connect directive', () => {
140140
imports: [
141141
FormsModule,
142142
ReactiveFormsModule,
143-
NgReduxForms,
143+
NgReduxFormModule,
144144
],
145145
declarations: [
146146
BasicUsageComponent,

source/module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ export function formStoreFactory(ngRedux: NgRedux<any>) {
3232
},
3333
]
3434
})
35-
export class NgReduxForms {}
35+
export class NgReduxFormModule {}

0 commit comments

Comments
 (0)