mirror of
https://github.com/chsakell/aspnet-core-signalr-angular.git
synced 2025-12-22 17:27:48 +00:00
22 lines
548 B
TypeScript
22 lines
548 B
TypeScript
import { Component, OnInit, Input } from '@angular/core';
|
|
|
|
import { Match } from '../interfaces';
|
|
import { FeedService } from '../services/feed.service';
|
|
|
|
@Component({
|
|
selector: 'match',
|
|
templateUrl: 'app/shared/components/match.component.html'
|
|
})
|
|
export class MatchComponent implements OnInit {
|
|
|
|
@Input() match: Match;
|
|
|
|
constructor(private feedService: FeedService) { }
|
|
|
|
ngOnInit() { }
|
|
|
|
subscribe() {
|
|
console.log(this.match.Id);
|
|
this.feedService.subscribeToFeed(this.match.Id);
|
|
}
|
|
} |