/** Angular Imports */ import { Injectable } from '@angular/core' ; import { Resolve , ActivatedRouteSnapshot } from '@angular/router' ; /** rxjs Imports */ import { Observable } from 'rxjs' ; /** Custom Services */ import { ClientsService } from '../clients.service' ; /**
 * Client Template resolver.
 */ @ Injectable ( ) export class ClientTemplateResolver implements Resolve < Object > { param { ClientsService } ClientsService constructor ( private clientsService ) { } returns { Observable < any > } resolve ( route ) { return this . clientsService . getClientTemplate ( ) ; } }