build: Use prettier for typescript
Stop ignoring .ts files in prettier and fix existing issues.
This commit is contained in:
+2
-3
@@ -8,9 +8,8 @@ describe('FloatingInterestRatesComponent', () => {
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ FloatingInterestRatesComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
declarations: [FloatingInterestRatesComponent]
|
||||
}).compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
|
||||
+5
-4
@@ -7,20 +7,22 @@ import { ActivatedRoute } from '@angular/router';
|
||||
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'];
|
||||
displayedColumns: string[] = [
|
||||
'fromDate',
|
||||
'interestRate'
|
||||
];
|
||||
|
||||
/**
|
||||
* Retrieves the loans data from `resolve`.
|
||||
* @param {ActivatedRoute} route Activated Route.
|
||||
*/
|
||||
constructor(private route: ActivatedRoute) {
|
||||
this.route.parent.data.subscribe(( data: { loanDetailsData: any }) => {
|
||||
this.route.parent.data.subscribe((data: { loanDetailsData: any }) => {
|
||||
this.loanDetails = data.loanDetailsData;
|
||||
});
|
||||
}
|
||||
@@ -28,5 +30,4 @@ export class FloatingInterestRatesComponent implements OnInit {
|
||||
ngOnInit() {
|
||||
this.interestRateData = this.loanDetails.interestRatesPeriods;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user