Angular Adapter pattern

Angular Adapter pattern

Let’s see an Angular version of the Adapter pattern.Mapping allow us to decrease coupling between what arrives from a remote BE on our FE. We can take advantage of one of the Gang of Four’s design patterns (the Adapter pattern) to transform the external response in what we want. Adapter […]

Read More…

Simple logging system for Angular

Logging system

It can often be useful to have a centralized point where to keep an eye on the events that occur on our site. Today we’ll create a simple logging system for Angular, to manage everything in one place. To start, we create the enum that takes care of ordering the […]

Read More…

“Maybe you were looking for…” 404 page

Maybe you were looking for 404 page

Sometimes we see a useful tip when we search for a command or a page and we find a 404 “Not found” page or a “command not found” if we are from the command line.This behavior is given by an algorithm named: “Levenshtein distance algorithm”.This particular algorithm allows us to […]

Read More…

Angular good code with some advices

Angular good code

Sometimes it can be convenient to stop and think about how to improve the existing one and write Angular good code, rather than go ahead without thinking.Below I have collected some small rules that I try to constantly follow and which I hope will be useful to you too. 1) […]

Read More…

Angular client-side pagination vs server-side pagination

Data-rich applications present a challenge: displaying large datasets without overwhelming users. Pagination comes to the rescue, breaking down information into manageable chunks. Angular offers two primary approaches: client-side pagination and server-side pagination. This article delves into both methods, providing code examples and helping you choose the best fit for your […]

Read More…