A library is a reusable plugin, to help us in some tasks within our project.We can start by simply using this command: And generate our library in project, named calc-lib in this case. With it, we’ll see our angular.json modiefied with one more project of type: library. It will also […]
Mastering Glob patterns: from regex lite to powerful file finders
Glob patterns, often seen as simpler cousins of regular expressions, play a crucial role in various programming tasks, especially when dealing with files and directories. They offer a concise and versatile way to define a set of files matching specific criteria, saving you from writing complex and error-prone code. This […]
EventEmitters across components without Parent-Child in Angular
In this scenario we have no connection between two components and we want to implement EventEmitters via two different components. If you have parent/child scenario you can useĀ @Input, @Output system of angular (explained in other places). In Angular, communication between components is crucial for building dynamic and interactive applications. While […]
Mastering custom validation in Angular with Reactive Forms
Angular’s Reactive Forms offer a robust framework for building dynamic and data-driven forms and custom validation. While built-in validators like required and email handle common scenarios, complex applications often require validation rules. This article delves into creating custom validators in Angular, empowering you to tailor form validation to your specific […]
CSS Gradients: Photoshop-like Transparency and others
CSS gradients offer a powerful way to create a Photoshop-like transparency background, replicating transparency effects and even surpassing Photoshop’s limitations. Get ready to dive into the vibrant world of CSS gradients and explore: Basic example A basic trick can be to show grey and white boxes. Transparency Tricks: Fading Away […]