Files
cbsnexora/src/app/organization/employees/employees.resolver.ts
T
Adam Saghy 19a14e5b5b Upgrade to Angular 16
Merge `angular-update-16` into `dev` branch
2025-05-23 18:47:20 +02:00

28 lines
616 B
TypeScript

/** Angular Imports */
import { Injectable } from '@angular/core';
/** rxjs Imports */
import { Observable } from 'rxjs';
/** Custom Services */
import { OrganizationService } from '../organization.service';
/**
* Employees data resolver.
*/
@Injectable()
export class EmployeesResolver {
/**
* @param {OrganizationService} organizationService Organization service.
*/
constructor(private organizationService: OrganizationService) {}
/**
* Returns the employees data.
* @returns {Observable<any>}
*/
resolve(): Observable<any> {
return this.organizationService.getEmployees();
}
}