The keep alive directive will caches your view and re-uses it when needed.
An example in COMPONENT.template.html.
COMPONENT.template.html
<input *keepAlive>
<div *keepAlive> <input> </div>