Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | 12x 12x 10x 10x 2x | import { Directive, EventEmitter, Input, Output } from "@angular/core"; import { ComponentInputDomainData } from "@core/model/component-input-data.interface"; // abstract class used to handle common behaviour for components that may be used in modals // or in regular child components @Directive() export abstract class BaseChildComponent { @Input({required: true}) data!: ComponentInputDomainData; @Output() succeeded = new EventEmitter<ComponentInputDomainData>(); @Output() failed = new EventEmitter<ComponentInputDomainData>(); success() :void { this.succeeded.emit(this.data); } fail() :void { this.failed.emit(this.data); } } |