src.app.molecules.panel.property-table-panel.property-table-panel.component.ts Maven / Gradle / Ivy
import { Component, Input } from '@angular/core';
import { Entry } from '@model';
import { ValidationService } from '../../validation/validation.service';
@Component({
selector: 'chutney-property-table-panel',
templateUrl: './property-table-panel.component.html',
styleUrls: ['./property-table-panel.component.scss']
})
export class PropertyTablePanelComponent {
@Input() entries: Array;
constructor(public validationService: ValidationService) { }
createEntry() {
this.entries.push(new Entry('', ''));
}
deleteEntry(entry: Entry) {
this.entries.splice(this.entries.indexOf(entry), 1);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy