Template-driven VS Reactive forms in Angular

Building forms in Angular presents two distinct approaches: template-driven forms vs reactive forms. Choosing the right method depends on your project’s complexity, your team’s comfort level, and the desired level of control over form behavior. This article delves into the strengths and weaknesses of both approaches, equipping you to make […]

Read More…

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. […]

Read More…

Add external HTML pages inside components

We may need to insert static or dynamic HTML pages / fragments coming from outside our website. With this little trick we can make a “get” call for the HTML we need to show it in a <div> container. The fragment must not have unexpected HTML (such as style or […]

Read More…

Angular Translate

Angular translate module

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 […]

Read More…

Create an Angular Formly form modal

Angular add a formly modal

Let’s create an Angular Formly form modal.With Angular we can create forms in many different ways, depending on what we need to do and depending on the complexity of the request.The library we are going to use today helps us in the generation of dynamic forms that allow the user […]

Read More…