Scroll to bottom of template node

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):

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

Thanks!