blob: 5863f669665c4a33e255dd0e811ccd42ee36d3a7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
import { Component, OnInit } from '@angular/core';
import { SignalRService } from 'src/app/_services/signal-r.service';
import Notification from 'src/app/_data/Notification';
@Component({
selector: 'app-notifications',
templateUrl: './notifications.component.html',
styleUrls: ['./notifications.component.css']
})
export class NotificationsComponent implements OnInit {
notifications?: Notification[];
closed: boolean = false;
constructor(private signalRService:SignalRService) {
this.notifications = [
new Notification("Titanik (Preziveli)", "79768456867", 0.2),
new Notification("Test Prediktor 1", "56758768678", 0.4),
new Notification("Test Prediktor 2", "11344556425", 0.7)
]
}
ngOnInit(): void {
// this.wsService.send('test');
}
}
|