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

Some Angular Concepts

What do you mean by adding behavior routerLink is a special attribute called directive, they are good at adding behaviors to html element or components. This <a> tag used to link to different page. But now it links to HomeComponent because of routerLink. We changed the behavior of <a> tag. Dependency Injection It’s a design […]

Categories
Angular Opinions Tutorials

TIL Week 27 2023: Stow, fzf, Angular Router gotchas

This is regular week update, of things I have discovered in my daily workflow. Its a nice place to come back in future. I also share because this might help other developers. They might come across similiar situation. Stow – Manage config file Up until this point I was only working on single machine to […]

Categories
Angular Nx Tutorials

Getting Started with Angular and Nx

This is a series of post which will cover array of topics. The application in question needs a component library (Angular Components aka Angular Material). A CSS Utility Library to take care of adding styles (Tailwind). A way to develop, document and test components (Storybook). Last but not least, move the load off to the […]

Categories
Opinions

Framework vs Library

Framework vs Library: Library provides set of functions and we call them when we need them, here our code is in charge. Framework on other hand provides an environment and being in charge of our code, it runs our code when it requires. Libraries are supplemental piece of functionality. They help you solve specific problem […]