Angular 6,HttpClient,检测后端的数据更改

时间:2018-11-05 19:03:05

标签: angular real-time real-time-updates

我有一个for (i = 0; i < n; i++) { s = s + tab[i, n - (i + 1)]; } ,如下:

MessageService

import { HttpClient, HttpHeaders } from "@angular/common/http"; @Injectable({ providedIn: "root" }) export class MessageService { private BASE_URL = "http://10.1.1.190/EDSOData/Messages"; constructor(private http: HttpClient) { } public update(parameters: Object) { const httpOptions = { headers: new HttpHeaders({ "Content-Type": "application/json", }) }; return this.http.post(this.BASE_URL, parameters, httpOptions); } } 插入一条消息。如果该应用同时有多个用户,我如何才能检测到所有这些用户的更改?

0 个答案:

没有答案