/** Angular Imports */ import { Injectable } from '@angular/core'; import { Resolve } from '@angular/router'; /** rxjs Imports */ import { Observable } from 'rxjs'; /** Custom Services */ import { OrganizationService } from '../organization.service'; /** * Standing Instructions Template resolver. */ @Injectable() export class StandingInstructionsTemplateResolver implements Resolve { /** * @param {OrganizationService} organizationService Organization service. */ constructor(private organizationService: OrganizationService) {} /** * Returns the Standing Instruction template. * @returns {Observable} */ resolve(): Observable { return this.organizationService.getStandingInstructionTemplate(); } }