Consider the following component:
@Component({
selector: 'app-test'
template: 'Hello!'
}}
export class TestComponent {
@Output() readonly selectionChange = new EventEmitter<SomeTypeHere>();
}
With the call:
<app-test (selectedChange)="selectedChangeHandler($event)"></app-test>
Note that I've written selectedChange instead of the correct output name selectionChange. Angular 9 with the flag strictTemplates enabled didn't help me at all. It failed silently. The interesting part is that if I do the same thing for @Input, the app catch the error(s) and doesn't compile.
Is there any way to throw an error if I try to "listen" an inexistent @Output?
