Bitovi Blog - UX and UI design, JavaScript and Front-end development


How to Write Angular Unit Tests That Actually Work

July 5, 2023

Most applications leverage API requests to fetch data. Considering data fetching is crucial for Angular testing. Consequently, it's common to include HttpClient in your unit tests.

How to Use RxJS catchError Without Unsubscribing from New Events

March 29, 2023

Did you know you can use the catchError RxJS operator to catch errors without unsubscribing? It’s true! It all depends on where you plan to use the operator.

Getting Started with RxJS: All You Need to Know About Observables

September 28, 2022

RxJS is a library that combines the Observer pattern—where Observables or Subjects notify Observers of state changes—with functional programming to handle data changes over time.

Always Know When to Use Share vs. ShareReplay

June 24, 2022

Using share and shareReplay is pretty darn confusing. The way share and shareReplay work is not always obvious and might lead to unexpected behavior in your application.

Handling Errors with RxJS

February 22, 2022

In Angular and other modern web frameworks, the UI is so intertwined that one unexpected response from the server can turn a beautiful website into a blank screen. Fortunately, you can build in error...

What’s New in RxJS 7: Small Bundles and Big Changes to share()

June 2, 2021

RxJS 7 has shipped! For us Angular developers, it unfortunately did not ship in time for Angular 12.

Manage Form-Driven State with ngrx-forms (Part 2)

May 25, 2021

This post is a continuation from Part 1, where we set up a test project with NgRx and ngrx-forms in our Angular application. For part 2, we will validate our form.