insight-previous-tcr
Version:
A blockchain explorer for Bitcore
23 lines (19 loc) • 512 B
text/typescript
import { Component, Injectable, Input } from "@angular/core";
import { Nav } from "ionic-angular";
import { ChainNetwork } from "../../providers/api/api";
export class FooterComponent {
private chainNetwork: ChainNetwork;
constructor(public nav: Nav) {}
public openPage(page: string): void {
this.nav.push(page, {
chain: this.chainNetwork.chain,
network: this.chainNetwork.network
});
}
}