Observables, Subjects and EventEmitters are amazing, I love them. But they have a common problem: what if you subscribe to one of them when the event has been already emitted? You would lose it!
As of today, deploying an i18n Angular 2 app is not so easy. The documentation is poor and things are still in development. Despite that, after weeks of struggle, I managed to make things work. And so you do now.
When testing a component with service dependencies, the best practice is mocking them, in order to test the component in an isolated environment. In fact, our purpose is testing the component, not the services, that can be trouble, especially if they try to interact with a server.In this article we will see the two methods … Continue reading Testing an Angular Component with Mock Services
RxJS Observables, compared to the old Promises in Angular 1, seem to be more complicated to understand, but they are far more flexible. Let’s see how we can combine and chain them, in order to merge multiple Http streams of data and get what we need.