UNPKG

insight-previous-tcr

Version:

A blockchain explorer for Bitcore

23 lines (19 loc) 512 B
import { Component, Injectable, Input } from "@angular/core"; import { Nav } from "ionic-angular"; import { ChainNetwork } from "../../providers/api/api"; @Injectable() @Component({ selector: 'footer', templateUrl: 'footer.html' }) export class FooterComponent { @Input() private chainNetwork: ChainNetwork; constructor(public nav: Nav) {} public openPage(page: string): void { this.nav.push(page, { chain: this.chainNetwork.chain, network: this.chainNetwork.network }); } }