post<T>(path: string, data: T): Promise<T> {
const url = this.createUrl(path);
const stringifiedData = JSON.stringify(data);
return new Promise<T>((resolve, reject) => {
this.http.post<T>(url, stringifiedData)
.subscribe(result => {
resolve(result);
}, error => {
reject(error);
;
;
}
I think that it’s extraordinarily important that we in computer science keep fun in computing
For all who deny the struggle, the triumphant overcome