import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; @Component({ selector: 'bom-part-select', templateUrl: './bom-part-select.component.html', styleUrls: ['./bom-part-select.component.scss'] }) export class BomPartSelectComponent { @Input() row: any; @Input() disabled; @Output() partDelete: EventEmitter = new EventEmitter(); @Output() partChange: EventEmitter = new EventEmitter(); constructor() {} onDelete(): void { this.partDelete.emit(null); } onSelectChange(checked): void { this.partChange.emit(checked); } }