Skip to main content
This guide walks you through integrating the CometChat Calls SDK into an Angular application. By the end, you’ll have a working video call implementation with proper service architecture and lifecycle management.

Prerequisites

Before you begin, ensure you have:
  • A CometChat account with an app created (Sign up)
  • Your App ID, Region, and API Key from the CometChat Dashboard
  • An Angular 14+ project
  • Node.js 16+ installed

Step 1: Install the SDK

Install the CometChat Calls SDK package:

Step 2: Create the Calls Service

Create a service to manage SDK initialization, authentication, and call operations:

Step 3: Initialize in App Component

Initialize the SDK when your app starts:

Step 4: Create the Call Component

Build a call component with proper lifecycle management:

Step 5: Create the Call Page

Create a page component that manages the call flow:

Step 6: Module Configuration

Add the components to your module:

Standalone Components (Angular 14+)

For standalone components without NgModules:
For more detailed information on specific topics covered in this guide, refer to the main documentation: