Sharing Top Content from the Angular-sphere.

Testing with the Angular HttpClient API

Embracing Observables and Immutability FTW The HttpClientTestingModulemakes it easier to mock requests using the HttpTestingController service.In this post we'll learn how to setup our tests and see real examples of how it can be used.This…

Lazy Loading With Rollup

Here’s the config I used for my Angular application: - - import resolve from 'rollup-plugin-node-resolve'; import uglify from 'rollup-plugin-uglify'; let root = ''); const baseRxJs = class ResolveESM { resolveId(importee, importer) { if…

Rx.JS replyWhen use-case in iframe-d Angular SPA

In the simplest case, the HTTP request function without any logic will look like this: - - But this is not what we want, so let the party begin - - As you may know to handle errors in Observable streams, we can use catch operator.In two…

Angular’s NgIf, Else, Then

Once evaluated, Angular will simply add or remove your DOM nodes, mount or remount your components, from the DOM - as the expression changes (if it ever does, that’s up to you).The basic syntax of the directive is simple and effective, all…

Complaint Processing Portal

The team created and launched the service that encourages people to tell their stories of injustice and helps them to be heard.It is a non-profit service run and edited by moderators. We were required to develop a solid complaint…

AngularJS Tutorial: Introduction

Picture from How to structure large angularJS applications - - Here are some of the characteristics of AngularJS: - - Data-binding framework - - Data-binding is an automatic way of updating the view whenever the model changes, as…