/** Angular Imports */ import { Injectable } from '@angular/core' ; import { Resolve } from '@angular/router' ; /** rxjs Imports */ import { Observable } from 'rxjs' ; /** Custom Services */ import { TemplatesService } from '../templates.service' ; /**
 * Create Template data resolver.
 */ @ Injectable ( ) export class CreateTemplateResolver implements Resolve < Object > { param { TemplatesService } templatesService constructor ( private templatesService ) { } returns { Observable < any > } resolve ( ) { return this . templatesService . getCreateTemplateData ( ) ; } }