I read about Mozilla events , here we are talking about "Inline event handlers" that should not be used and are considered bad practice.
eg.
<button onclick="bgChange()">Press me</button>
However, in frameworks like Angular, we do something like:
<my-component (click)="onClick($event)"></my-component>
Isn't that contrary to what Mozilla considers bad practice in this case?
If this question needs to be asked in another section, please let me know.
Haris source
share