Giter VIP home page Giter VIP logo

angular-typing-indicators's Introduction

Typing indicator for CometChat Pro

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:

Typing indicator

Technology

This demo uses:

Running the demo

To run the demo follow these steps:

  1. Head to CometChat Pro and create an account
  2. From the dashboard, create a new app called "Typing indicator"
  3. One created, click Explore
  4. Go to the API Keys tab and click Create API Key
  5. Create an API key called "Typing indicator key" with Auth Only
  6. Download the repository here or by running git clone https://github.com/cometchat-pro-tutorials/angular-typing-indicators.git
  7. Update environment.ts with your newly-created appID and apiKey
  8. Install project dependencies by typing: npm install
  9. Launch application with: npm start
  10. Navigate to http://localhost:4200 and type 'superhero1' in the prompt
  11. Open another browser window; navigate to http://localhost:4200 and type 'superhero2' in the prompt
  12. You can login up to 4 users (superhero1, superhero2, superhero3, superhero4)
  13. Start typing!

Questions about running the demo? Open an issue. We're here to help โœŒ๏ธ

Useful links

angular-typing-indicators's People

Contributors

maciejtreder avatar tahash avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

tahash

angular-typing-indicators's Issues

Scroll to bottom

When new messages trickle in, it is important that we scroll to the bottom so that the latest messages are visible

Replace prompt with a humble text input

I am referring to this prompt,

image

Can we instead please create a simple (it can be unstyled) screen with humble input type="text" for the username?

It should have the following description in an unstyled p:

image

Motivation

We should only render the main screen once the user has been connected successfully.

The problem with prompt is that after entering a username, it can take 2-5 seconds to connect. That is enough time for a user (who is normally evaluating CometChat) to start kicking the tyres (sending a message, etc.) which won't work if the user isn't connected.

It is too easy to end up in a scenario like this:

image

This can make the experience feel buggy when it needn't be, therefore I would like to only render the chat screen when the user has connected.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.