Skip to content

Instantly share code, notes, and snippets.

@BrightnBubbly
Created May 4, 2020 04:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BrightnBubbly/79d6d278c007b85bb0882ca58a5b8f20 to your computer and use it in GitHub Desktop.
Save BrightnBubbly/79d6d278c007b85bb0882ca58a5b8f20 to your computer and use it in GitHub Desktop.
<div class="main">
<div class="chat-box">
<div class="message-area">
<header>
<p>{{ channel.id }}</p>
<img src="https://randomuser.me/api/portraits/lego/8.jpg" alt="" />
</header>
<div
class="message"
*ngFor="let message of messages"
[ngClass]="getClasses(message.user.id)"
>
<p>{{ message.text }}</p>
</div>
</div>
<div class="input-area">
<form (submit)="sendMessage()" name="messageForm">
<button>
<span data-feather="smile"></span>
</button>
<input
placeholder="Type your message"
type="text"
name="message"
id="message"
[(ngModel)]="message"
/>
<button class="send">
<span data-feather="send"></span>
</button>
</form>
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment