diff --git a/src/app/app.module.ts b/src/app/app.module.ts index ae4db80..c2e8554 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -10,6 +10,7 @@ import {HeaderComponent} from './components/header/header.component'; import {ProfileComponent} from './components/profile/profile.component'; import {AddGameComponent} from './components/add-game/add-game.component'; import {MatchHistoryComponent} from './pages/match-history/match-history.component'; +import {FormsModule} from '@angular/forms'; @NgModule({ declarations: [ @@ -24,7 +25,8 @@ import {MatchHistoryComponent} from './pages/match-history/match-history.compone ], imports: [ BrowserModule, - AppRoutingModule + AppRoutingModule, + FormsModule ], providers: [], bootstrap: [AppComponent] diff --git a/src/app/components/add-game/add-game.component.html b/src/app/components/add-game/add-game.component.html index 0059c44..8677307 100644 --- a/src/app/components/add-game/add-game.component.html +++ b/src/app/components/add-game/add-game.component.html @@ -23,8 +23,28 @@
Illegal game teams!
-Please enter the points that every player has collected:
+{{this.actualPlayers[0].firstName}} |
+ + |
{{this.actualPlayers[1].firstName}} |
+ + |
{{this.actualPlayers[2].firstName}} |
+ + |
{{this.actualPlayers[3].firstName}} |
+ + |
Total score doesn't add up!
++ {{player.firstName}}: {{calculateCurrentScore(player)}} +