Created
May 5, 2017 18:13
-
-
Save Ibro/9da535203d93ddb6d0e47ff8aae3cb9d to your computer and use it in GitHub Desktop.
RxJS Socket.IO Angular Chat - Angular Component Template - Coding Blast - www.codingblast.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div *ngFor="let message of messages"> | |
{{message}} | |
</div> | |
<input [(ngModel)]="message" (keyup)="$event.keyCode == 13 && sendMessage()" /> | |
<button (click)="sendMessage()">Send</button> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment