This file contains hidden or 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
| import {EventEmitter, Injectable, OnDestroy} from "@angular/core"; | |
| /** | |
| * Interface to ensure broadcast message uniformity. | |
| */ | |
| export interface IBroadcastMessage { | |
| source: string; | |
| target: string; | |
| action: string; | |
| payload: any; |
This file contains hidden or 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
| <!-- Simple Binding --> | |
| <input type="submit" value="OK" data-bind='widget: "button"' /> | |
| <!-- Complex Binding with options --> | |
| <input id='search' data-bind='widget: { name: "autocomplete", options: { source: searchCompletions(), delay: 500 } }, value: searchString' /> |
This file contains hidden or 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
| using Microsoft.AspNet.SignalR.Hubs; | |
| using System.Timers; | |
| namespace SignalRDemo | |
| { | |
| public class DemoHub : Hub | |
| { | |
| private readonly DemoTimer _demoTimer; | |
| public DemoHub() |