Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
ASP.NET Core SignalR chat with Angular 5 -
<div id="main-container" style="text-align:center">
<a href="" target="_new">
ASP.NET Core SignalR Chat with Angular
<div class="container">
<h2>Hello {{nick}}!</h2>
<form (ngSubmit)="sendMessage()" #chatForm="ngForm">
<label for="message">Message</label>
<input type="text" id="message" name="message" [(ngModel)]="message" required>
<button type="submit" id="sendmessage" [disabled]="!chatForm.valid">
<div class="container" *ngIf="messages.length > 0">
<div *ngFor="let message of messages">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment