# Scroll to bottom of template node

**URL:** <https://discourse.nodered.org/t/scroll-to-bottom-of-template-node/11190>\
**Category:** Dashboard\
**Created:** [15 May 2019 22:59 UTC](https://discourse.nodered.org/t/scroll-to-bottom-of-template-node/11190 "2019-05-15T22:59:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tve](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/tve/32/59475_2.png) [@tve](https://discourse.nodered.org/u/tve)\
**Post date:** [15 May 2019 22:59 UTC](https://discourse.nodered.org/t/scroll-to-bottom-of-template-node/11190/1 "2019-05-15T22:59:18Z")

</div>

I'm using a template node to display a log and I'd like that to scroll to the end of the log entries when a new entry is added. I don't know much about angular, so I need help. Does someone have a relatively simple solution? The template I have is very simple (msg.payload is and array of log entries):

```auto
<p ng-repeat="l in msg.payload track by $index">
    {{ l }}
</p>

```

Thanks!
