Prerequisites
- Node.js 18 or higher
- Angular 19, 20, or 21
- A CometChat account with App ID and Auth Key
Step 1: Install the Package
Step 2: Import Styles
Add the CSS variables to yourangular.json:
styles.css:
Step 3: Register UIKit Assets
The UIKit ships icons, images, and audio files that Angular’s build system won’t serve automatically. Add the assets path to yourangular.json so they are copied to the output:
Step 4: Initialize CometChat
Initialize CometChat inmain.ts before bootstrapping the Angular app, using UIKitSettingsBuilder:
To enable voice and video calling, install
@cometchat/calls-sdk-javascript and add .setCallingEnabled(true) to the builder. Without this, call buttons are hidden across all components. See Call Features for details.Step 5: Login a User
Step 6: Add a Component
Add the conversations component to your template:Make sure to replace
YOUR_APP_ID, YOUR_AUTH_KEY, and YOUR_REGION with your actual CometChat credentials.Next Steps
Integration Guide
Full setup guide with examples
Components
Explore all available components