A base class for the GameStat Component

Hierarchy

  • GameStatComponent

Implements

  • OnInit

Constructors

  • The constructor for the GameStat class

    Parameters

    • route: ActivatedRoute

      For accessing data in the URL

    • gameService: GameService

      For retrieving GameStat data

    Returns GameStatComponent

Properties

displayedColumns: string[] = ...

Webpage table column names

gameId: string

ID of Game to show stats for

gameService: GameService

For retrieving GameStat data

gameStatList: GameStat[] = []

Array for storing GameStat records

route: ActivatedRoute

For accessing data in the URL

routeSub: Subscription

For retrieving Game ID from URL

title: string = 'Game Statistics'

The webpage title

Methods

  • Private

    Calls the GameService to retrieves GameStats and filters them by the current Game ID

    Returns void

  • Executes when this component is loaded. Retrieves Game ID from URL and calls the getGameStats() method

    Returns void

Generated using TypeDoc