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) […]
Tag: Angular
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 […]
Javascript object to query string
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 […]
Scaling up with an Angular project: choosing the right strategy
As your Angular project grows, managing reusable components becomes crucial. This article explores four popular approaches: using a common industry library, a dedicated components library, modularizing within the project, and the single-module approach. Each solution offers unique benefits and trade-offs, guiding you towards the best fit for your specific needs. […]
Angular Translate
Dynamic labels can be generated, translated with the user’s language and/or language administration. All starts with the import of translation modules: Then generate our json with the translations of the labels: In our module we will add imports and a function to load an external file. In a component we […]