feat: add tellers component (#520)

Fixes: #159
This commit is contained in:
punwai
2019-12-23 21:31:24 +03:00
committed by Abhay Chawla
parent 6b250f081a
commit 34e1f4da36
9 changed files with 224 additions and 4 deletions
@@ -0,0 +1,30 @@
/** 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';
/**
* Tellers data resolver.
*/
@Injectable()
export class TellersResolver implements Resolve<Object> {
/**
* @param {OrganizationService} organizationService Organization service.
*/
constructor(private organizationService: OrganizationService) {}
/**
* Returns the Tellers data.
* @returns {Observable<any>}
*/
resolve(): Observable<any> {
return this.organizationService.getTellers();
}
}