feat: add view loan page (floating interest rates tab) (#872)
Fixes: #871
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { ActivatedRoute } from '@angular/router';
|
||||
|
||||
@Component({
|
||||
selector: 'mifosx-floating-interest-rates',
|
||||
templateUrl: './floating-interest-rates.component.html',
|
||||
styleUrls: ['./floating-interest-rates.component.scss']
|
||||
})
|
||||
export class FloatingInterestRatesComponent implements OnInit {
|
||||
|
||||
/** Loan Details */
|
||||
loanDetails: any;
|
||||
/** Interest Rate Data */
|
||||
interestRateData: any;
|
||||
/** Columns to be displayed in charges table. */
|
||||
displayedColumns: string[] = ['fromDate', 'interestRate'];
|
||||
|
||||
/**
|
||||
* Retrieves the loans data from `resolve`.
|
||||
* @param {ActivatedRoute} route Activated Route.
|
||||
*/
|
||||
constructor(private route: ActivatedRoute) {
|
||||
this.route.data.subscribe(( data: { loanDetailsAssociationData: any }) => {
|
||||
this.loanDetails = data.loanDetailsAssociationData;
|
||||
});
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.interestRateData = this.loanDetails.interestRatesPeriods;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user