Node red dashboard, taking input in new node

I have created a simple UI node for my node red dashboard. The next this I want to do it take the input msg and show the extracted data in my widget. I have read the official docs and seen some examples but dont seem to understand how the input is received and showed.
Can anybody help??
This is where I am looking for help

Hi @sarosh,
You can use the $scope.watch function to process the input message You can look e.g. here for an example.
Bart