Created
November 14, 2017 06:11
-
-
Save Ibro/be8ff981a557edd244128dc5bb7269cf to your computer and use it in GitHub Desktop.
ASP.NET Core SignalR chat with Angular 5 - https://codingblast.com/asp-net-core-signalr-chat-angular
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 id="main-container" style="text-align:center"> | |
<h1> | |
<a href="https://codingblast.com/asp-net-core-signalr-simple-chat/" target="_new"> | |
ASP.NET Core SignalR Chat with Angular | |
</a> | |
</h1> | |
<div class="container"> | |
<h2>Hello {{nick}}!</h2> | |
<form (ngSubmit)="sendMessage()" #chatForm="ngForm"> | |
<div> | |
<label for="message">Message</label> | |
<input type="text" id="message" name="message" [(ngModel)]="message" required> | |
</div> | |
<button type="submit" id="sendmessage" [disabled]="!chatForm.valid"> | |
Send | |
</button> | |
</form> | |
</div> | |
<div class="container" *ngIf="messages.length > 0"> | |
<div *ngFor="let message of messages"> | |
<span>{{message}}</span> | |
</div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment