# Dashboard-template-node prints incoming msg on its own

**URL:** <https://discourse.nodered.org/t/dashboard-template-node-prints-incoming-msg-on-its-own/67656>\
**Category:** Dashboard\
**Tags:** node-red-dashboard\
**Created:** [13 September 2022 13:35 UTC](https://discourse.nodered.org/t/dashboard-template-node-prints-incoming-msg-on-its-own/67656 "2022-09-13T13:35:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JustinB](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/justinb/32/68068_2.png) [@JustinB](https://discourse.nodered.org/u/JustinB)\
**Post date:** [13 September 2022 13:35 UTC](https://discourse.nodered.org/t/dashboard-template-node-prints-incoming-msg-on-its-own/67656/1 "2022-09-13T13:35:43Z")

</div>

Hello people,

I'm currently implementing a tabulator-table to my node-RED-dashboard and facing a weird issue.

The table imports a JSON which is pulled from a database. The data is getting imported and everything is fine. But the whole JSON is getting displayed below the table somehow:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/2/c23a36754d5a2d79158f14d75bc2d84a5ca37389.png)

That's the template-node:

```auto
<script type="text/javascript" src="/tabulator-tables/dist/js/tabulator.min.js"></script>
<link rel="stylesheet" href="/tabulator-tables/dist/css/tabulator.min.css" />
<div id="example-table"></div>
<div ng-bind-html="msg.payload"></div>
<script>
(function(scope) {
    scope.$watch('msg', function(msg) {
        //var data = [];
        if(msg) var tabledata = msg.payload;
        var table = new Tabulator("#example-table", {
            data:tabledata,
            //placeholder:"Keine Daten verfügbar!",
            layout:"fitColumns",
            columns:[
                {title:"Register", field:"Register", width:100},
                {title:"Beschreibung", field:"Beschreibung"},
                {title:"Druck", field:"Druck"},
            ],
        });
    });
})(scope);
</script>

```

Thanks in advice

Justin

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [13 September 2022 13:39 UTC](https://discourse.nodered.org/t/dashboard-template-node-prints-incoming-msg-on-its-own/67656/2 "2022-09-13T13:39:24Z")

</div>

> [@JustinB](#):
>
> `<div ng-bind-html="msg.payload"></div>`

Remove this line.

---

<div class="post-metadata">

**Author:** ![JustinB](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/justinb/32/68068_2.png) [@JustinB](https://discourse.nodered.org/u/JustinB)\
**Post date:** [13 September 2022 13:41 UTC](https://discourse.nodered.org/t/dashboard-template-node-prints-incoming-msg-on-its-own/67656/3 "2022-09-13T13:41:43Z")

</div>

Thank you! How easy was that 😂

---

<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:** [27 September 2022 13:42 UTC](https://discourse.nodered.org/t/dashboard-template-node-prints-incoming-msg-on-its-own/67656/4 "2022-09-27T13:42:34Z")

</div>

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