Blogs
Use the lwc:on Event Handler in Lightning Web Components
The purpose of the lwc:on event handler is to make event handling in Lightning Web Components more explicit, readable, and maintainable. By introducing a clear directive-based syntax, Salesforce helps developers write cleaner templates, avoid ambiguity, and better align LWC with modern web standards.