Angular http.post without .subscribe callback

I do not think you can.

http.post (and get, put, delete, etc) returns a cold Observable, i.e. an Observable for which:

its underlying producer is created and activated during subscription

Source.

This means the function represented by the Observable is activated only with the subscribe() method.

Convenience methods subscribe too, see implementation details for Observable#toPromise() here.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)