Skip to content

Instantly share code, notes, and snippets.

@ayoisaiah
Last active May 7, 2020 08:31
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ayoisaiah/23b9e5327c975d6c8ddef9389ac183ad to your computer and use it in GitHub Desktop.
<nb-layout center>
<nb-layout-column>
<div *ngIf="!channel">
Loading...
</div>
<nb-chat size="large" *ngIf="channel" title="Stream Chat Angular">
<nb-chat-message
*ngFor="let msg of messages"
[message]="msg.text"
[sender]="msg.user.name"
>
</nb-chat-message>
<nb-chat-form (send)="sendMessage($event)">
</nb-chat-form>
</nb-chat>
</nb-layout-column>
</nb-layout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment