import {Component, EventEmitter, Input, Output} from '@angular/core'; import {PluginEditEvent} from "./base-plugin.form.component"; @Component({ selector: 'plugin-field-edit', template: `
`, }) export class PluginFieldEditComponent { @Input() type; @Input() value; @Input() field; @Input() placeholder; @Output() editClicked:EventEmitter = new EventEmitter(); @Output() changed:EventEmitter = new EventEmitter() editingModeOn: boolean = true; updateObject(value){ console.log(value) this.value = value; this.changed.emit({field:this.field, value: this.value, type: this.type}); } }