import { Component , OnInit } from '@angular/core' ; import { ActivatedRoute } from '@angular/router' ; @ Component ( { selector : 'mifosx-original-schedule-tab' , templateUrl : './original-schedule-tab.component.html' , styleUrls : [ './original-schedule-tab.component.scss' ] } ) export class OriginalScheduleTabComponent implements OnInit { /** Loan Details Data */ originalScheduleDetails : any ; /** Columns to be displayed in original schedule table. */ displayedColumns : string [ ] = [ 'date' , 'principalDue' , 'balanceOfLoan' , 'interest' , 'fees' , 'penalties' , 'outstanding' ] ; param { ActivatedRoute } route constructor ( private route ) { this . route . parent . data . subscribe ( ( data ) => { this . originalScheduleDetails = data . loanDetailsData . originalSchedule ; } ) ; } ngOnInit ( ) { } }