Home / Companies / PubNub / Blog / Post Details
Content Deep Dive

AngularJS Tutorial: Real-time User List with Presence

Blog post from PubNub

Post Details
Company
Date Published
Author
Michael Carroll
Word Count
1,408
Company Posts That Month
7
Language
English
Hacker News Points
-
Post removed?
No
Summary

Part 3 of the PubNub series guides users through the process of enhancing a chat application built with PubNub’s AngularJS SDK by adding a real-time user roster. Building upon the previous tutorial that introduced infinite scrolling, this installment focuses on implementing a feature that displays the current online users and updates in real-time as users join or leave the chat room. This involves activating the Presence API in the PubNub admin dashboard and developing a User service to manage the array of online users, which is continuously updated with events such as 'join' and 'leave'. The tutorial further instructs on setting up the user interface for the real-time roster using AngularJS directives, allowing developers to see the user list dynamically update across multiple windows. This comprehensive guide provides not only the steps to integrate these features but also emphasizes the modular approach of adding components to the chat app, akin to assembling Lego blocks.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Real-time 11 331 101 41 +39%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.