Categories
Angular Tutorials

Nice usage of rediretFunction in Angular Router

The rediretTo property in the Router now accepts a function since version 18. That can return a string or UrlTree. I have found one nice use case for it. Imagine you have following routes Here when we visit the /users we are redirected to /users/list. Now you are asked to create one more entry in […]

Categories
Nvim

How I fixed Nvim icons

The CSS icons wasn’t showing in neo-tree so does the storybook icon. It was annoying to click to .stories.ts file mistakenly instead of .component.ts file. Neo-tree or entire nevoid space uses nvim-web-devicons which expect patched Nerd Font. Turns out I was using Liga SFMono Nerd Font Instead I chose JetBrainsMono Nerd Font It just had […]

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