Skip to content

Commit 823a18e

Browse files
committed
refactoring after looking up the dictionary :)
1 parent 4ae798f commit 823a18e

File tree

5 files changed

+12
-13
lines changed

5 files changed

+12
-13
lines changed

Tic-Tac-Toe/src/app/app.module.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {environment} from '../environments/environment';
1212
import {MockHttpModule} from './mock-http/mock-http.module';
1313
import 'hammerjs';
1414
import {SidebarComponent} from './sidebar/sidebar.component';
15-
import {PlaygroundComponent} from './playground/playground.component';
15+
import {GameBoardComponent} from './game-board/game-board.component';
1616
import {RegistrationFormComponent} from './registration/registration-form.component';
1717
import {RouterModule, Routes} from '@angular/router';
1818
import {IsRegisterdGuard} from './registration/is-registerd-guard';
@@ -23,7 +23,7 @@ import {HistoryService} from './gameplay/history.service';
2323
const routes: Routes = [
2424
{path: '', pathMatch: 'full', redirectTo: 'registration'},
2525
{path: 'registration', component: RegistrationFormComponent},
26-
{path: 'play', component: PlaygroundComponent, canActivate: [IsRegisterdGuard]},
26+
{path: 'play', component: GameBoardComponent, canActivate: [IsRegisterdGuard]},
2727
{path: 'highscore', component: HighscoreComponent, canActivate: [IsRegisterdGuard]}
2828
];
2929

@@ -33,7 +33,7 @@ const routes: Routes = [
3333
AppComponent,
3434
GridComponent,
3535
SidebarComponent,
36-
PlaygroundComponent,
36+
GameBoardComponent,
3737
RegistrationFormComponent,
3838
HighscoreComponent
3939
],

Tic-Tac-Toe/src/app/playground/playground.component.html renamed to Tic-Tac-Toe/src/app/game-board/game-board.component.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
<md-card>
32
<md-card-header color="primary">
43
<md-chip-list>

Tic-Tac-Toe/src/app/playground/playground.component.spec.ts renamed to Tic-Tac-Toe/src/app/game-board/game-board.component.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
22

3-
import { PlaygroundComponent } from './playground.component';
3+
import { GameBoardComponent } from './game-board.component';
44

5-
describe('PlaygroundComponent', () => {
6-
let component: PlaygroundComponent;
7-
let fixture: ComponentFixture<PlaygroundComponent>;
5+
describe('GameBoardComponent', () => {
6+
let component: GameBoardComponent;
7+
let fixture: ComponentFixture<GameBoardComponent>;
88

99
beforeEach(async(() => {
1010
TestBed.configureTestingModule({
11-
declarations: [ PlaygroundComponent ]
11+
declarations: [ GameBoardComponent ]
1212
})
1313
.compileComponents();
1414
}));
1515

1616
beforeEach(() => {
17-
fixture = TestBed.createComponent(PlaygroundComponent);
17+
fixture = TestBed.createComponent(GameBoardComponent);
1818
component = fixture.componentInstance;
1919
fixture.detectChanges();
2020
});

Tic-Tac-Toe/src/app/playground/playground.component.ts renamed to Tic-Tac-Toe/src/app/game-board/game-board.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import {HistoryService} from '../gameplay/history.service';
44

55
@Component({
66
selector: 'playground',
7-
templateUrl: './playground.component.html',
8-
styleUrls: ['./playground.component.scss']
7+
templateUrl: './game-board.component.html',
8+
styleUrls: ['./game-board.component.scss']
99
})
10-
export class PlaygroundComponent implements OnInit {
10+
export class GameBoardComponent implements OnInit {
1111

1212
constructor(public engineService: EngineService, private historyService: HistoryService) { }
1313

0 commit comments

Comments
 (0)