# Keep Alive

The keep alive directive will caches your view and re-uses it when needed.&#x20;

## Cache Input

An example in `COMPONENT.template.html`.

```markup
<input *keepAlive>
```

## Cache Div

An example in `COMPONENT.template.html`.

```markup
<div *keepAlive>
  <input>
</div>
```

�
