import { Component , OnInit } from '@angular/core' ; import { ActivatedRoute } from '@angular/router' ; @ Component ( { selector : 'mifosx-account-details' , templateUrl : './account-details.component.html' , styleUrls : [ './account-details.component.scss' ] } ) export class AccountDetailsComponent implements OnInit { loanDetails : any ; dataObject : { property : string ; value : string ; } [ ] ; constructor ( private route ) { this . route . parent . data . subscribe ( ( data ) => { this . loanDetails = data . loanDetailsData ; } ) ; } ngOnInit ( ) { } }