I have this method. When I click on remove button it shows console.log-message but does not hit the server.
What am I missing?
removeSelecteds(instances: number[]) : Observable<void>{
var obj = { instanceIds: instances };
console.log('JSON.stringify(obj)='+JSON.stringify(obj));
return this.http
.request(URLS.instances+'/remove', RequestMethod.Delete, JSON.stringify(obj))
.map(res => {
this.getInstances();
}
);
}
Thanks in advance