Need help to understand the below code

Hi, I actually found a tutorial about how to access the message object in template script:

https://flows.nodered.org/flow/2f1aaf0635f9bf23207152682323240a

but I dont understand what is "scope" in the closure function..

hope someone can help on this :sweat_smile:

Scope is an object generated by the AngularJS framework that node-red-dashboard is built around.

Read the built in help for the ui-template node. it shows you an example of using scope.

Also, see here for more info

1 Like

Thank you :slight_smile: I will study on it