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…

Javascript object to query string

js object to querystring

It can often be useful to transform a javascript object into a query string dynamically, without necessarily knowing the properties of that object. Another good reason is to avoid concatenation for each individual parameter. This method can be used also in javascript/typescript frameworks like: Angular, React, Svelte, etc. This is […]

Read More…