Skip to content

Instantly share code, notes, and snippets.

@Ibro
Last active November 16, 2017 07:18
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 Ibro/0eeb419947efa14fb5f814267e32965c to your computer and use it in GitHub Desktop.
Save Ibro/0eeb419947efa14fb5f814267e32965c 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
import { Component } from '@angular/core';
import { HubConnection } from '@aspnet/signalr-client';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
private hubConnection: HubConnection;
nick = '';
message = '';
messages: string[] = [];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment