Read the full tutorial here:
[>> Add animated typing indicators to your Angular chat app](to be updated)
This example shows how to build a typing indicator into Angular chat application:
This demo uses:
- @cometchat-pro/chat@1.8.6
- Angular@8.0.1
To run the demo follow these steps:
- Head to CometChat Pro and create an account
- From the dashboard, create a new app called "Typing indicator"
- One created, click Explore
- Go to the API Keys tab and click Create API Key
- Create an API key called "Typing indicator key" with Auth Only
- Download the repository here or by running
git clone https://github.com/cometchat-pro-tutorials/angular-typing-indicators.git - Update environment.ts with your newly-created
appIDandapiKey - Install project dependencies by typing:
npm install - Launch application with:
npm start - Navigate to http://localhost:4200 and type 'superhero1' in the prompt
- Open another browser window; navigate to http://localhost:4200 and type 'superhero2' in the prompt
- You can login up to 4 users (superhero1, superhero2, superhero3, superhero4)
- Start typing!
Questions about running the demo? Open an issue. We're here to help ✌️
