feat:glim and gsim account create and view
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
/** Angular Imports */
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Resolve, ActivatedRouteSnapshot } from '@angular/router';
|
||||
|
||||
/** rxjs Imports */
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
/** Custom Services */
|
||||
import { GroupsService } from '../groups.service';
|
||||
|
||||
/**
|
||||
* GLIM Loans Accounts data resolver.
|
||||
*/
|
||||
@Injectable()
|
||||
export class GLIMAccountsResolver implements Resolve<Object> {
|
||||
|
||||
/**
|
||||
* @param {GroupsService} groupsService Groups service.
|
||||
*/
|
||||
constructor(private groupsService: GroupsService) { }
|
||||
|
||||
/**
|
||||
* Returns the Group's GLIM Loans Acccounts data.
|
||||
* @param {ActivatedRouteSnapshot} route Route Snapshot.
|
||||
* @returns {Observable<any>}
|
||||
*/
|
||||
resolve(route: ActivatedRouteSnapshot): Observable<any> {
|
||||
const groupId = route.parent.paramMap.get('groupId');
|
||||
return this.groupsService.getGLIMAccountsData(groupId);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
/** Angular Imports */
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Resolve, ActivatedRouteSnapshot } from '@angular/router';
|
||||
|
||||
/** rxjs Imports */
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
/** Custom Services */
|
||||
import { GroupsService } from '../groups.service';
|
||||
|
||||
/**
|
||||
* GSIM Accounts data resolver.
|
||||
*/
|
||||
@Injectable()
|
||||
export class GSIMAccountsResolver implements Resolve<Object> {
|
||||
|
||||
/**
|
||||
* @param {GroupsService} groupsService Groups service.
|
||||
*/
|
||||
constructor(private groupsService: GroupsService) { }
|
||||
|
||||
/**
|
||||
* Returns the Group's GSIM Acccounts data.
|
||||
* @param {ActivatedRouteSnapshot} route Route Snapshot.
|
||||
* @returns {Observable<any>}
|
||||
*/
|
||||
resolve(route: ActivatedRouteSnapshot): Observable<any> {
|
||||
const groupId = route.parent.paramMap.get('groupId');
|
||||
return this.groupsService.getGSIMAccountsData(groupId);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user