Categories
Angular Tutorials

Building a Reusable Angular Sorting Directive

We already achieved sorting by updating some signal httpResource. All in unison. But making every column sortable has some boilerplate code. We need a way to easily make our table sortable with minimal effort. In this post we will fix it by building a reusable Angular Sorting Directive, that is inspired from Material Sort without […]

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