File tree 2 files changed +23
-1
lines changed 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import {MatButtonModule} from "@angular/material/button";
9
9
import { StoreModule } from '@ngrx/store' ;
10
10
import { AuthService } from "./auth.service" ;
11
11
import { EffectsModule } from '@ngrx/effects' ;
12
+ import * as fromAuth from './reducers' ;
12
13
13
14
@NgModule ( {
14
15
imports : [
@@ -18,7 +19,10 @@ import { EffectsModule } from '@ngrx/effects';
18
19
MatInputModule ,
19
20
MatButtonModule ,
20
21
RouterModule . forChild ( [ { path : '' , component : LoginComponent } ] ) ,
21
-
22
+ StoreModule . forFeature (
23
+ 'auth' ,
24
+ fromAuth . reducers
25
+ )
22
26
] ,
23
27
declarations : [ LoginComponent ] ,
24
28
exports : [ LoginComponent ]
Original file line number Diff line number Diff line change
1
+ import {
2
+ ActionReducer ,
3
+ ActionReducerMap ,
4
+ createFeatureSelector ,
5
+ createSelector ,
6
+ MetaReducer
7
+ } from '@ngrx/store' ;
8
+
9
+
10
+
11
+ export interface State {
12
+
13
+ }
14
+
15
+ export const reducers : ActionReducerMap < State > = {
16
+
17
+ } ;
18
+
You can’t perform that action at this time.
0 commit comments