---
schema_version: "1"
id: 81f21fec1781617ec2462649218ecac503c29b1b8905039003a85f1a8d786c69
title: New and Changed Directives for Lightning Web Components
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/release-notes/264-0-0/rn_lwc_directives.md
canonical_url: https://help.salesforce.com/s/articleView?id=release-notes.rn_lwc_directives.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 8ec3e6b8cfe621c1beb7ad1c9f2a9e4b3ebc3e00ff1cc55f351c8e61fe7c8f45
description: Add dynamic behavior to an HTML template with directives.
release: "264"
---
# New and Changed Directives for Lightning Web Components

Add dynamic behavior to an HTML template with directives.

## New Directives

This directive is now available.

lwc:on={eventHandlers}

Adds event listeners to an element dynamically. You can also use this directive if you want to add event listeners whose event types are computed dynamically, for example, when passed from the owner component via `@api`.

#### See Also

- [_Lightning Web Components Developer Guide_: HTML Template Directives](https://developer.salesforce.com/docs/platform/lwc/guide/reference-directives.html)