|
|
@@ -16,6 +16,7 @@ import {GameService} from "../../providers/game-service";
|
|
16
|
16
|
})
|
|
17
|
17
|
export class GamesPage {
|
|
18
|
18
|
private games: Array<any>;
|
|
|
19
|
+ private singleGame: any ={};
|
|
19
|
20
|
|
|
20
|
21
|
constructor(public navCtrl: NavController, public navParams: NavParams,
|
|
21
|
22
|
public gameService: GameService) {
|
|
|
@@ -23,8 +24,9 @@ export class GamesPage {
|
|
23
|
24
|
|
|
24
|
25
|
ionViewDidLoad() {
|
|
25
|
26
|
//setInterval(() => {
|
|
26
|
|
- this.gameService.getGames().subscribe(games => {
|
|
27
|
|
- this.games = games;
|
|
|
27
|
+ this.gameService.getGame(3).subscribe(games => {
|
|
|
28
|
+ console.log(games)
|
|
|
29
|
+ this.singleGame= games;
|
|
28
|
30
|
})
|
|
29
|
31
|
//}, 100000);
|
|
30
|
32
|
}
|