undefined Output should show error in the parent template
Author: urielzenCreated Sep 26, 2021Updated Sep 16, 2026
Labelsfeaturearea: compilercompiler: template type-checkingfeature: under consideration
Which @angular/* package(s) are relevant/releated to the feature request?
core
Description
I believe I have all the template strict checks enabled, and I was expecting to have a template error at my parent component telling me that my child component does not have certain output if there is a typo in its name.
@Component({
selector: 'app-child',
templateUrl: './child.component.html'
})
export class ChildComponent {
@Output() outputFromChild = new EventEmitter<string>();
}
<app-child (outputFromChildWithATypo)="handleOutputAtParent($event)"></app-child>
Proposed solution
The compiler should warn about a non-existing output in the component element.
Alternatives considered
Please let me know if this error check already exists, I may just be missing enabling it. I tried googling for it but could not find anything relevant.
Source: angular/angular