/** Angular Imports */ import { Injectable } from '@angular/core' ; import { Resolve } from '@angular/router' ; /** rxjs Imports */ import { Observable } from 'rxjs' ; /** Custom Services */ import { ProductsService } from '../products.service' ; /**
 * Tax Component template data resolver.
 */ @ Injectable ( ) export class TaxComponentTemplateResolver implements Resolve < Object > { param { ProductsService } productsService constructor ( private productsService ) { } returns { Observable < any > } resolve ( ) { return this . productsService . getTaxComponentTemplate ( ) ; } }