Skip to content

Commit 41c84d2

Browse files
committed
organize
1 parent 87eb374 commit 41c84d2

13 files changed

+21
-21
lines changed

src/app/add-todo/add-todo.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { Component, OnInit } from '@angular/core';
22
import { FormControl, FormGroup, Validators } from '@angular/forms';
33
import { Store } from '@ngrx/store';
44

5-
import { AppState } from './../app.reducer';
6-
import * as TodoActions from './../todo.actions';
5+
import { AppState } from './../../redux/app.reducer';
6+
import * as TodoActions from './../../redux/todo/todo.actions';
77

88
@Component({
99
selector: 'app-add-todo',

src/app/app.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Component } from '@angular/core';
22
import { Store } from '@ngrx/store';
33

4-
import { AppState } from './app.reducer';
5-
import * as TodoActions from './todo.actions';
4+
import { AppState } from './../redux/app.reducer';
5+
import * as TodoActions from './../redux/todo/todo.actions';
66

77
@Component({
88
selector: 'app-root',

src/app/app.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { NgModule } from '@angular/core';
44
import { RouterModule, Routes } from '@angular/router';
55
import { StoreModule } from '@ngrx/store';
66
import { StoreDevtoolsModule } from '@ngrx/store-devtools';
7-
import { rootReducer } from './app.reducer';
7+
import { rootReducer } from './../redux/app.reducer';
88

99
import { AppComponent } from './app.component';
1010
import { TodoComponent } from './todo/todo.component';

src/app/footer/footer.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { Component, OnInit } from '@angular/core';
22
import { Store } from '@ngrx/store';
33

4-
import { AppState } from './../app.reducer';
5-
import * as FilterActions from './../filter.actions';
6-
import * as TodoActions from './../todo.actions';
7-
import { getCountTodos, getStateCompleted } from './../todo.selectors';
4+
import { AppState } from './../../redux/app.reducer';
5+
import * as FilterActions from './../../redux/filter/filter.actions';
6+
import * as TodoActions from './../../redux/todo/todo.actions';
7+
import { getCountTodos, getStateCompleted } from './../../redux/todo/todo.selectors';
88

99
@Component({
1010
selector: 'app-footer',

src/app/todo-list/todo-list.component.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import { FormControl } from '@angular/forms';
33
import { ActivatedRoute } from '@angular/router';
44
import { Store } from '@ngrx/store';
55

6-
import { AppState } from './../app.reducer';
7-
import { Todo } from './../todo.model';
8-
import * as FilterActions from './../filter.actions';
9-
import * as TodoActions from './../todo.actions';
10-
import { getVisibleTodos, getStateCompleted } from './../todo.selectors';
6+
import { AppState } from './../../redux/app.reducer';
7+
import { Todo } from './../../redux/todo/todo.model';
8+
import * as FilterActions from './../../redux/filter/filter.actions';
9+
import * as TodoActions from './../../redux/todo/todo.actions';
10+
import { getVisibleTodos, getStateCompleted } from './../../redux/todo/todo.selectors';
1111

1212
@Component({
1313
selector: 'app-todo-list',

src/app/todo/todo.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import { Component, OnInit, Input, ViewChild, ElementRef } from '@angular/core';
22
import { FormControl, Validators } from '@angular/forms';
33
import { Store } from '@ngrx/store';
44

5-
import { AppState } from './../app.reducer';
6-
import { Todo } from './../todo.model';
7-
import * as TodoActions from './../todo.actions';
5+
import { AppState } from './../../redux/app.reducer';
6+
import { Todo } from './../../redux/todo/todo.model';
7+
import * as TodoActions from './../../redux/todo/todo.actions';
88

99
@Component({
1010
selector: 'app-todo',

src/app/app.reducer.ts renamed to src/redux/app.reducer.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { ActionReducerMap } from '@ngrx/store';
22

3-
import { TodosReducer } from './todo.reducer';
4-
import { FilterReducer } from './filter.reducer';
5-
import { Todo } from './todo.model';
3+
import { TodosReducer } from './todo/todo.reducer';
4+
import { FilterReducer } from './filter/filter.reducer';
5+
import { Todo } from './todo/todo.model';
66

77
export interface AppState {
88
todos: Todo[];
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/app/todo.selectors.ts renamed to src/redux/todo/todo.selectors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { createSelector } from '@ngrx/store';
2-
import { AppState } from './app.reducer';
2+
import { AppState } from './../app.reducer';
33

44
export const getState = (state: AppState) => state;
55
export const getTodos = (state: AppState) => state.todos;

0 commit comments

Comments
 (0)