Hi folks,
I needed to get a nested property from an input message, so I wrote following snippet
$scope.$watch('msg', function(msg) {
var someNestedPropertyValue = RED.util.getMessageProperty(....);
}
However I get "ReferenceError: RED is not defined", and then I realized I have never used before this kind of stuff in a UI node (or Template node) ...
So the question is, how to continue with this:
- I write my own getMessageProperty function (based on the one from Node-RED), so anybody can find it here in this discussion.
- Something should be added to the core of the dashboard (to support some kind of lightweight RED API), so all node developers can use it (at least if that dashboard version is installed).
- It does already exist, but I cannot find it?
- Other ideas ...
Thanks !!
Bart