Joshua Colvin

angular all tags

12 Posts
Creating Angular Component Styling Hooks with CSS Custom Properties

When creating Angular components for others to use someone will inevitably request the ability to customize styles that are not supported…

Understanding Angular ::ng-deep

The CSS selector is often used in an Angular Component’s CSS to override the styles of a third-party component or a child component’s…

How to Conditionally Add Attributes in Angular

There are often times in Angular when you want to add an HTML attribute to an element but only if some condition is . In this post, I will…

Building a Pagination Component in Angular

A pagination component can be used to paginate a list of items. In this article, we will code a pagination component in Angular…

How to Check Which Versions of Node Angular CLI Supports

I recently ran into an issue with Angular CLI version 10.1.0. Anytime I ran I would get this error: After a lot of trial and error I…

Subscribing to route params and route data in Angular

There are times when you need to subscribe to both params and data in a component. In this article, I will show you how I accomplished this…

Mocking Route params in Angular unit tests

Mocking activated route snapshot params It’s common, in Angular, to access route parameters when the component is initialized. This can be…

Handling Errors in Angular Resolvers

In a previous post, we looked at creating a Resolver. The resolver will route the user if the data “resolves” but not if an error occurs and…

Creating a Route Resolver in Angular

Angular Resolvers allow us to get data before the user is navigated to a route. If we have a route that displays a list of products there…

Adding dynamic validators in Angular

Adding dynamic validators to an Angular form control is not as straight forward as one would expect. We’ll explore some problems you may…

Why choose Angular?

There are plenty of think pieces that compare JavaScript frameworks and tell you why all of them are inferior to the authors chosen one…

Resources for learning Angular

Learning a new framework can be a daunting task. One thing that makes this task even more difficult is deciding which resources are worth…