import { Injectable } from '@angular/core' ; import { Resolve , ActivatedRouteSnapshot } from '@angular/router' ; import { TransactionService } from './transaction.service' ; import { Transaction } from '@signumjs/core' ; @ Injectable ( ) export class TransactionResolver implements Resolve < Promise < Transaction > > { constructor ( private transactionService ) { this . transactionService = transactionService ; } resolve ( route ) { return this . transactionService . getTransaction ( route . paramMap . get ( 'id' ) ) ; } }