---
schema_version: "1"
id: e461d7d705472d9f388603b7677776ed781aa8a36a9e0ca2a8d5ed5b5eeeb8bf
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/260-0-0/rn_lwc_directives.md
canonical_url: https://help.salesforce.com/s/articleView?id=release-notes.rn_lwc_directives.htm&release=260&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 8ec3e6b8cfe621c1beb7ad1c9f2a9e4b3ebc3e00ff1cc55f351c8e61fe7c8f45
description: Add dynamic behavior to an HTML template with directives.
products:
  - Cross Cloud Packages Solutions
release: "260"
---
# 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)