Using JavaScript for Gadget Development
Use JavaScript to program each gadget to handle business logic in an application. You can use JavaScript to process the data received from the server (using the underlying JavaScript APIs), perform data manipulation, and update the user interface of the gadget.
Gadgets can invoke RESTful services for:
Retrieving data
Updating the gadget user interface after receiving data
Firing event (limited to AngularJS gadgets only) and notifying any updates to other gadgets