according to this answer How to return an empty observable in rxjs i have tried all of it but it did not work for me
here is my code
post(url):Obser
In angular 2 you can return empty observable by using this :
import {EmptyObservable} from 'rxjs/EmptyObservable'; return new EmptyObservable();