rpaschoal / ng-chat

💬 A simple facebook/linkedin lookalike chat module for Angular applications.
MIT License
155 stars 92 forks source link

How to paginate through old messages #94

Closed mukeshphpdev closed 5 years ago

mukeshphpdev commented 5 years ago

Hi @rpaschoal,

i am facing pagination issue, i want to load old messages when scroll up, is there any option for this. currently i am using firebase, can you give me any example for it.

rpaschoal commented 5 years ago

Hi @mukeshphpdev ,

There is an experimental adapter for this feature as mentioned on the README here https://github.com/rpaschoal/ng-chat#paged-history-chat-adapter-beta

Here is an example implementation: https://github.com/rpaschoal/ng-chat/blob/master/demo/offline_bot/src/app/demo-adapter-paged-history.ts

Hope it helps! Cheers

mukeshphpdev commented 5 years ago

thanks a lot.

Cheers