29 lines
920 B
TypeScript
29 lines
920 B
TypeScript
import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';
|
|
import {ConfiguratorParameter} from "../../../../shared/models/configurator-parameter.interface";
|
|
|
|
@Component({
|
|
selector: 'app-configurator-edit-value',
|
|
templateUrl: './configurator-edit-value.component.html',
|
|
styleUrls: ['./configurator-edit-value.component.scss']
|
|
})
|
|
export class ConfiguratorEditValueComponent implements OnInit {
|
|
|
|
@Input() editParameterRequestInput: ConfiguratorParameter;
|
|
@Output() newConfiguratorParameter = new EventEmitter<ConfiguratorParameter>();
|
|
|
|
selectedParameter: ConfiguratorParameter = null;
|
|
|
|
|
|
constructor() { }
|
|
|
|
ngOnInit(): void {
|
|
console.log('editParameterRequestInput in edit: ' + JSON.stringify(this.editParameterRequestInput));
|
|
}
|
|
|
|
passValueChange(newConfigurator: ConfiguratorParameter) {
|
|
this.newConfiguratorParameter.emit(newConfigurator);
|
|
}
|
|
|
|
|
|
}
|