angular2 http post with subscribe and catch

Why don't we use catch when calling http post construct? For example, + '/employee/save', payload, {headers : headersJson})
.catch(err => {

Http Post is lazily instantiated with subscribe method call. That's why the code below is better :-


Popular posts from this blog

A quick tutorial for OWASP ZAP tool for beginners

ionic2 cordova build android - Unable resolve gradle 2.2.3