---
# System prepended metadata

title: Element initialization
tags: [brew-js]

---

---
tags: brew-js
---

# Element initialization

## Methods

### `app.matchElement`

Same as registering listener on `mounted` event but filtered by selector. 

```typescript
app.matchElement(selector, callback): void
```

## Events

### `mounted` event

| Bubbles | Handlable |
| ------- | --------- |
| No      | No        |

Performs initialization when the element is first rendered.

```typescript
app.on('mounted', callback): void
app.on(elementOrSelector, 'mounted', callback): void
```
