Categories
Opinions

When to use Signals in Angular – Decision Tree

The content discusses a problem with resetting and syncing cascading dropdowns in Angular, where changing a root dropdown unintentionally resets a third dropdown. The solution involved moving the reset logic to the linkedSignal, illustrated through a flowchart and decision tree outlining various signal handling strategies in React.

Categories
Angular Opinions Tutorials

Understanding Angular Checkbox Directives and Host Binding

Imagine we have directive that customizes the checkbox color and interaction. We want to make our checkbox checked base on certain condition. But line 5, the highlighted one will throw following error. What really happens is that Angular thinks we are binding directive on some host elements (container etc) that doesn’t have checked property. Angular […]

Categories
Opinions

Accessibility and test hooks for HTM L Table

Well usually you would use role attributes or aria-label or aria-labelled-by to add the accessibility heuristics. But in the case of table, you don’t need to add any thing extra to make the HTML Table accessible. Just using correct element syntax is enough. What it has to do with testing, well those can easily by […]

Categories
Angular Opinions

One less effect to reset signal in Angular

I need to fetch some posts. We will use the httpResource. HttpClient returned observables but this one is reactive wrapper around HttpClient. The response we get is a signal. We can render the content in template as {{ content.value() }} But there is new inquiry. We need filter by specific user, No problem we can […]

Categories
Opinions

Walt Disney unique way of requesting input