Hi,
hope someone can help
My content disappeared after trigger the angular js send function
[
{
"id": "b17f4e2518ccb979",
"type": "ui_template",
"z": "08f7a2f8d6e59272",
"group": "252497966a12284e",
"name": "",
"order": 7,
"width": "6",
"height": "9",
"format": "<div>\n <div>\n <h2>Test</h2>\n </div>\n <ul class=\"group_ul\">\n <li class=\"group_li\" ng-repeat=\"x in msg.group.config\">\n {{x.group}}\n <span style=\"float:right;\"> > </span>\n\n <ul class=\"device_ul\">\n <li class=\"device_li\" ng-repeat=\"y in msg.device[x.id]\" ng-click=\"send({'topic':'test'})\">\n {{y.device}}\n </li>\n </ul>\n </li>\n </ul>\n</div>\n\n\n<style>\n.group_ul, .device_ul {\n list-style: none;\n margin-left: 0;\n padding-left: 0;\n}\n\n.group_li, .device_li {\n padding-left: 1em;\n text-indent: -1em;\n}\n\n.group_li:before {\n content: \"📁\";\n padding-right: 5px;\n}\n/*\n.device_ul{\n display: none;\n transition: opacity 1s ease-out;\n opacity: 0;\n}\n*/\n</style>\n",
"storeOutMessages": true,
"fwdInMessages": false,
"resendOnRefresh": true,
"templateScope": "local",
"className": "",
"x": 400,
"y": 1740,
"wires": [
[
"1bfd41e1a17249b4"
]
]
},
{
"id": "119685c4c8a8bf91",
"type": "inject",
"z": "08f7a2f8d6e59272",
"name": "",
"props": [],
"repeat": "",
"crontab": "",
"once": true,
"onceDelay": 0.1,
"topic": "",
"x": 110,
"y": 1740,
"wires": [
[
"32bea2e5754a53db"
]
]
},
{
"id": "32bea2e5754a53db",
"type": "function",
"z": "08f7a2f8d6e59272",
"name": "",
"func": "msg.group = {\"config\":[{\"group\":\"Line 1\",\"id\":1659579567271,\"view\":\"View\",\"edit\":\"Edit\",\"delete\":\"Delete\"},{\"group\":\"Line 3\",\"id\":1659945257868,\"view\":\"View\",\"edit\":\"Edit\",\"delete\":\"Delete\"},{\"group\":\"Line 2\",\"id\":1660202500870,\"view\":\"View\",\"edit\":\"Edit\",\"delete\":\"Delete\"},{\"group\":\"Line 4\",\"id\":1660266656455,\"view\":\"View\",\"edit\":\"Edit\",\"delete\":\"Delete\"}]}\n\nmsg.device = {\"1659579567271\":[{\"device\":\"Secure Elite 300\",\"unit_id\":\"1\",\"id\":1659579600607,\"view\":\"View\",\"edit\":\"Edit\",\"delete\":\"Delete\"}],\"1660202500870\":[{\"device\":\"Device 2.0\",\"unit_id\":\"2\",\"id\":1660202587497,\"view\":\"View\",\"edit\":\"Edit\",\"delete\":\"Delete\"}],\"1659945257868\":[{\"device\":\"Drive 3\",\"id\":1660203460465,\"view\":\"View\",\"edit\":\"Edit\",\"delete\":\"Delete\",\"unit_id\":\"1\"}]}\n\n\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 240,
"y": 1740,
"wires": [
[
"b17f4e2518ccb979"
]
]
},
{
"id": "1bfd41e1a17249b4",
"type": "debug",
"z": "08f7a2f8d6e59272",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 530,
"y": 1720,
"wires": []
},
{
"id": "252497966a12284e",
"type": "ui_group",
"name": "Default",
"tab": "499954d8f07402af",
"order": 1,
"disp": true,
"width": "6",
"collapse": false,
"className": ""
},
{
"id": "499954d8f07402af",
"type": "ui_tab",
"name": "Setting: Modbus Signal 2",
"icon": "",
"disabled": false,
"hidden": false
}
]