Need help to understand the below code

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

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

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