Catching Rejections Catching Rejections To catch rejections we use the subscriber's error and complete callbacks. import { Http } from '@angular/http' ; import ...
Alternative HTTP Mocking Strategy Alternative HTTP Mocking Strategy An alternative to using MockBackend is to create our own light mocks. Here we create an object and then tel...
Requests as Promises Requests as Promises The observable returned by Angular http client can be converted it into a promise. We recommend using observables over promises. By c...
Zones In The Zone Change Detection Debugging Simple Stack trace Detailed "Long" Stack trace Zones Zone.js provides a mechanism, called zones, for encapsulating and interc...