blob: 15a18f16b89ddf676ffe658c3bae314978bf24ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
---
order: 11
title: ignore
---
# x-ignore
By default, Alpine will crawl and initialize the entire DOM tree of an element containing `x-init` or `x-data`.
If for some reason, you don't want Alpine to touch a specific section of your HTML, you can prevent it from doing so using `x-ignore`.
```alpine
<div x-data="{ label: 'From Alpine' }">
<div x-ignore>
<span x-text="label"></span>
</div>
</div>
```
In the above example, the `<span>` tag will not contain "From Alpine" because we told Alpine to ignore the contents of the `div` completely.
|