import { Component , OnInit } from '@angular/core' ; import { Store } from "@ngrx/store" ; import { GameState } from "./store/game.state" ; @ Component ( { selector : 'app-root' , templateUrl : './app.component.html' } ) export class AppComponent implements OnInit { gameState ; constructor ( private store ) { } ngOnInit ( ) { this . gameState = this . store . select < GameState > ( 'gameState' ) ; } }