# Event Binding

*noun*

say it: **“ih-VENT BYND-ing”** **/ɪˈvɛnt ˈbaɪndɪŋ/**

The ( ) syntax that runs component code when an event happens, such as (click).

## What is **Event Binding**?

**Event binding** uses parentheses to run component code when something happens in the page, like a click or a key press.

```html
<button (click)="likePost()">Like</button>
<input (keyup.enter)="search()" />
```

## In a sentence

- “**Event binding**, (click)="add()", adds the product when the button is clicked.”

Level: Novice · [More Angular terms at this level](https://www.ask-codey.com/glossary?category=angular&level=1)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/event-binding
