An Angular application setup has unit testing configured with Karma and Jasmine by default. This post describes the steps to replace the default test setup width Jest.
Continue reading Angular Jest testing setup
How can you make multiple HttpClient requests in order and emit only one value to the subscription?
Continue reading Multiple requests in order and emit once in Angular
In Angular applications sometimes it’s necessary to use external libraries like Google Maps, as in any other application as well. In this post I’ll show how to create a service for this job.
Continue reading How to dynamically load external scripts in Angular
The multi tenancy principle is a useful method of showing different versions of the same application. The idea behind is to use the first segment of the url path as an indicator for the app to show content, or styles accordingly.
Continue reading Multi tenancy in Angular apps
Google Firestore is a cloud-hosted NoSQL realtime database with a quite simple to use API. One problem I ran into a few times, is fetching sub-collections together with a collection. This use-case is not covered with the Firestore API and this article show a useful workaround.
Continue reading How to get Firestore collection data with sub-collections in Angular
Sometimes it’s necessary to update a form field’s validator dynamically, depending on another field value for example. This post explains how to do this.
Continue reading Dynamic form validation in Angular