Exploring the difference between disabling a form control through reactive forms API and HTML attributes
Having parts of a form disabled is a common requirement for any large application. Sometimes users must be prevented from interacting with a form based on their role in an application.I n this article, we will explore different ways to disable reactive form controls.
Global objects in Angular
Running event listeners outside of the NgZone
NgZone notifies Angular when to perform the change detection process (e.g. a DOM event with bound listener is one of the triggerers). However, if in response to an event you directly manipulate the DOM or simply perform an action which does not require bindings update, the process is redundant.
Building a Type Agnostic Cache Using Generics in TypeScript
When building a client application, some requests to the server are identical regardless of the specific view the user is in. A cache eliminates redundant HTTP calls and may also help reduce the number of potential future HTTP calls if it implements some additional logic.
Angular and SOLID principles
In software engineering, making things work the first time is always easy. But, what if you want to add new functionalities to an existing code? Making iterations on an existing basis can be difficult to do without introducing bugs. This is where SOLID principles come into play.
Bulletproof Angular. Angular strict mode explained
Announcing Stryker 4.0: Mutation Switching
NGRX | Use effects and router-store to isolate route related side effects.
One of the major advantages of ngrx is that we can isolate side effects from the components. When we need to have router related data on the component we'll usually use the ActivatedRoute service from the component itself.
Agnostic components in Angular
When you’re building a reusable components library, API is very important. On one hand, you want a tidy, reliable solution, on the other — you need to take care of lots of specific use cases. Learn how to make components that work with everything and look like anything!