/** Angular Imports */ import { Injectable } from '@angular/core' ; import { Resolve } from '@angular/router' ; /** rxjs Imports */ import { Observable } from 'rxjs' ; /** Custom Services */ import { CollectionsService } from '../collections.service' ; /**
 * Returns all the offices data.
 */ @ Injectable ( ) export class GetOfficesResolver implements Resolve < Object > { param { CollectionsService } CollectionsService constructor ( private collectionsService ) { } returns { Observable < any > } resolve ( ) { return this . collectionsService . getOffices ( ) ; } }