# Template "button" image is lost on click

**URL:** https://discourse.nodered.org/t/template-button-image-is-lost-on-click/55080
**Category:** Dashboard
**Created:** [12 December 2021 16:17 UTC](https://discourse.nodered.org/t/template-button-image-is-lost-on-click/55080 "2021-12-12T16:17:39Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)
#### Post date: [12 December 2021 16:17 UTC](https://discourse.nodered.org/t/template-button-image-is-lost-on-click/55080/1 "2021-12-12T16:17:39Z")

</div>

I'm displaying an image in a template, when clicked it opens a notification showing the image in full size.

The problem I have is once clicked the image in the template is lost. I got around it by re-sending the image back into the template. This seems a bit messy, is there a better way ?

```auto
<div height="202" width="306">
    <img ng-src="{{msg.image}} "height="200" width="306" ng-click="send({image:msg.image})" >
</div>

```

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [11 January 2022 16:17 UTC](https://discourse.nodered.org/t/template-button-image-is-lost-on-click/55080/2 "2022-01-11T16:17:48Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
