- Multiple instance behavior: All instances are accessible throughout application via Pubnub service.
- Events: Delegated methods accept the triggerEvents option which will broadcast certain callback as an AngularJS event.
- A $pubnubChannel object that seamlessly binds a PubNub channel to a scope variable that gets updated with realtime data and allows you to interact with the channel through dedicated methods.
- A $pubnubChannelGroup object that provides an easy-to-use interface for channel groups. It stores the incoming messages in containers split by the channel and exposes an interface to directly fetch messages by channel.
INTEGRATING PUBNUB ANGULARJS SDK INTO YOUR APP
Your HTML page will include 2 key libraries: