feat: add loans view page (#661)

- Add loan account page
- Add general tab
- Add account details tab

Fixes: #219
This commit is contained in:
Muskan Khedia
2020-05-31 22:49:21 +05:30
committed by GitHub
parent 1539180a3a
commit 11cbe7a155
24 changed files with 1178 additions and 11 deletions
+5 -1
View File
@@ -12,7 +12,7 @@ import { Observable } from 'rxjs';
providedIn: 'root'
})
export class LoansService {
constructor(private http: HttpClient) {}
constructor(private http: HttpClient) { }
/**
* @param {string} loanId loanId of the loan.
* @returns {Observable<any>}
@@ -29,4 +29,8 @@ export class LoansService {
return this.http.post(`/loans/${loanId}/${resourceType}`, loanCharge);
}
getLoanAccountDetails(loanId: string) {
return this.http.get(`/loans/${loanId}`);
}
}