Alexis Hernandez
7 years ago
2 changed files with 19 additions and 0 deletions
@ -0,0 +1,17 @@ |
|||
import { Injectable } from '@angular/core'; |
|||
|
|||
import { Router } from '@angular/router'; |
|||
|
|||
@Injectable() |
|||
export class NavigatorService { |
|||
|
|||
constructor(private router: Router) { } |
|||
|
|||
go(path: string) { |
|||
this.router.navigate([path]); |
|||
} |
|||
|
|||
transactionDetails(txid: string) { |
|||
this.go('/transactions/' + txid); |
|||
} |
|||
} |
Loading…
Reference in new issue