Live Coding Happy Hour Recap 2017-03-03: Inter widget communications
Import
·
Mar 07, 2017
·
article
In this episode, Chuck and Josh discuss some API methods with GlideSysAttachment and how to make Service Portal widgets talk to each other.
Video
Time/Topics
00:00 Introductions
03:12 API of the Week
11:04 Service Portal app introduction and issue
13:55 Construction begins - create spinner widget and place on pages
20:53 Add listener to spinner widget
28:17 Add $broadcast to new page widget
34:53 Convert .success() to .then()
38:20 Add $broadcast to output page widget
38:57 Sidebar discussion about localization
47:56 Testing
50:38 Experiment without $timeout
51:49 Refactor opportunity?
54:30 Wrap up & recap
59:17 End
View original source
https://www.servicenow.com/community/developer-blog/live-coding-happy-hour-recap-2017-03-03-inter-widget/ba-p/2266885