import { Component , OnInit } from '@angular/core' ; import { Router } from '@angular/router' ; import { GameService } from '../game.service' ; @ Component ( { selector : 'app-adventure-log' , templateUrl : './adventure-log.page.html' , styleUrls : [ './adventure-log.page.scss' ] , } ) export class AdventureLogPage implements OnInit { constructor ( private router , public gameService ) { } ngOnInit ( ) { this . gameService . updateOptions ( ) ; } openLink ( link ) { window . open ( link , '_blank' ) ; } openCombat ( combat ) { this . router . navigate ( [ '/combat' , combat ] ) ; } }