mirror of
https://github.com/chsakell/aspnet-core-signalr-angular.git
synced 2025-12-23 01:37:59 +00:00
move feed service from match component
This commit is contained in:
@@ -73,4 +73,11 @@ export class HomeComponent implements OnInit {
|
||||
console.log(error);
|
||||
});
|
||||
}
|
||||
|
||||
updateSubscription(subscription: any) {
|
||||
if(<boolean>subscription.subscribe === true)
|
||||
this.feedService.subscribeToFeed(<number>subscription.matchId);
|
||||
else
|
||||
this.feedService.unsubscribeFromFeed(<number>subscription.matchId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user