import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core'; import {AllService} from '../../../../all.service'; @Component({ selector: 'jhi-contract-guarantees-funeral', templateUrl: './contract-guarantees-funeral.component.html', styleUrls: ['./contract-guarantees-funeral.component.css'] }) export class ContractGuaranteesFuneralComponent implements OnInit { @Input() loans: any; @Input() model = null; @Input() capital = null; @Output() setCapitalEvent: EventEmitter = new EventEmitter(); capitalValues = [...Array(19).keys()].map((i, j) => { return i * 500 + 1000; }); constructor(public allService: AllService) { } ngOnInit(): void {} setCapital(value) { this.setCapitalEvent.emit(value); } }