File tree 11 files changed +44
-23
lines changed
11 files changed +44
-23
lines changed Original file line number Diff line number Diff line change
1
+ import { NgModule } from '@angular/core' ;
2
+
3
+ import { ConnectArray } from './connect-array' ;
4
+
5
+ const declarations = [ ConnectArray ] ;
6
+
7
+ @NgModule ( {
8
+ declarations : [ ...declarations ] ,
9
+ exports : [ ...declarations ] ,
10
+ } )
11
+ export class NgReduxFormConnectArrayModule { }
Original file line number Diff line number Diff line change @@ -36,10 +36,10 @@ import {
36
36
} from '@angular/forms' ;
37
37
import { Unsubscribe } from 'redux' ;
38
38
39
- import { ConnectBase } from './connect-base ' ;
40
- import { FormStore } from './form-store' ;
41
- import { State } from './state' ;
42
- import { controlPath , selectValueAccessor } from './shims' ;
39
+ import { ConnectBase } from '.. /connect' ;
40
+ import { FormStore } from '.. /form-store' ;
41
+ import { State } from '.. /state' ;
42
+ import { controlPath , selectValueAccessor } from '.. /shims' ;
43
43
44
44
export class ConnectArrayTemplate {
45
45
constructor (
Original file line number Diff line number Diff line change
1
+ export * from './connect-array.module' ;
2
+ export * from './connect-array' ;
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ import { Unsubscribe } from 'redux';
14
14
15
15
import 'rxjs/add/operator/debounceTime' ;
16
16
17
- import { FormStore } from './form-store' ;
18
- import { State } from './state' ;
17
+ import { FormStore } from '.. /form-store' ;
18
+ import { State } from '.. /state' ;
19
19
20
20
export interface ControlPair {
21
21
path : Array < string > ;
Original file line number Diff line number Diff line change 3
3
Input ,
4
4
} from '@angular/core' ;
5
5
6
- import { FormStore } from './form-store' ;
6
+ import { FormStore } from '.. /form-store' ;
7
7
8
8
import { ConnectBase } from './connect-base' ;
9
9
Original file line number Diff line number Diff line change
1
+ import { NgModule } from '@angular/core' ;
2
+
3
+ import { Connect } from './connect' ;
4
+ import { ReactiveConnect } from './connect-reactive' ;
5
+
6
+ const declarations = [ Connect , ReactiveConnect ] ;
7
+
8
+ @NgModule ( {
9
+ declarations : [ ...declarations ] ,
10
+ exports : [ ...declarations ] ,
11
+ } )
12
+ export class NgReduxFormConnectModule { }
File renamed without changes.
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { Directive } from '@angular/core';
2
2
3
3
import { NgForm } from '@angular/forms' ;
4
4
5
- import { FormStore } from './form-store' ;
5
+ import { FormStore } from '.. /form-store' ;
6
6
import { ConnectBase } from './connect-base' ;
7
7
8
8
Original file line number Diff line number Diff line change
1
+ export * from './connect-base' ;
2
+ export * from './connect-reactive' ;
3
+ export * from './connect.module' ;
4
+ export * from './connect' ;
Original file line number Diff line number Diff line change @@ -3,8 +3,6 @@ export * from './form-reducer';
3
3
export * from './form-exception' ;
4
4
export * from './form-store' ;
5
5
export * from './configure' ;
6
- export * from './connect-base' ;
7
- export * from './connect-reactive' ;
8
6
export * from './connect' ;
9
7
export * from './connect-array' ;
10
8
export * from './module' ;
Original file line number Diff line number Diff line change 1
1
import { NgModule } from '@angular/core' ;
2
2
import { FormsModule , ReactiveFormsModule } from '@angular/forms' ;
3
-
4
3
import { NgRedux } from '@angular-redux/store' ;
5
4
6
- import { ReactiveConnect } from './connect-reactive' ;
7
- import { Connect } from './connect' ;
8
- import { ConnectArray } from './connect-array' ;
5
+ import { NgReduxFormConnectModule } from './connect' ;
6
+ import { NgReduxFormConnectArrayModule } from './connect-array' ;
9
7
import { FormStore } from './form-store' ;
10
8
11
9
export function formStoreFactory ( ngRedux : NgRedux < any > ) {
@@ -16,23 +14,19 @@ export function formStoreFactory(ngRedux: NgRedux<any>) {
16
14
imports : [
17
15
FormsModule ,
18
16
ReactiveFormsModule ,
19
- ] ,
20
- declarations : [
21
- Connect ,
22
- ReactiveConnect ,
23
- ConnectArray ,
17
+ NgReduxFormConnectModule ,
18
+ NgReduxFormConnectArrayModule ,
24
19
] ,
25
20
exports : [
26
- Connect ,
27
- ReactiveConnect ,
28
- ConnectArray ,
21
+ NgReduxFormConnectModule ,
22
+ NgReduxFormConnectArrayModule
29
23
] ,
30
24
providers : [
31
25
{
32
26
provide : FormStore ,
33
27
useFactory : formStoreFactory ,
34
28
deps : [ NgRedux ] ,
35
29
} ,
36
- ]
30
+ ] ,
37
31
} )
38
32
export class NgReduxFormModule { }
You can’t perform that action at this time.
0 commit comments