Read more about the article How to Force Selection in Angular Material Autocomplete
Force Selection in Autocomplete

How to Force Selection in Angular Material Autocomplete

In this post, we'll look at how to validate autocomplete component from Angular Material. Working with reactive forms, we'll write a custom validator to force selection only from the list of options. [toc] The autocomplete component is an input with a dropdown of suggested options. It allows the user to…

16 Comments

Calendar Component in Angular Material

In this post, you'll learn how to use Angular Material calendar component without date picker input. The calendar component allows date selection in a month view, which could be useful for a wide range of use cases such as booking forms. In addition to displaying a calendar, we will validate…

21 Comments
Read more about the article Easily Decode JSON Web Token (JWT) in Your SPA
Decode JWT Tokens in Angular

Easily Decode JSON Web Token (JWT) in Your SPA

JSON Web Tokens (JWT) are commonly used in single page application frameworks like Angular for authentication and authorisation. In situations where you want grab the details of the user from the token, you need a way to decode it yourself. In this post, I will be using jwt-decode, which is…

3 Comments
Read more about the article Angular Material Confirm Dialog
Angular Material Reusable Confirm Dialog

Angular Material Confirm Dialog

It is a common requirement for any Angular application to prompt the user for a confirmation dialog. For instance, you may want to show a message when the user wants to delete a record or send an email. In this post, we will look at how we can implement a…

11 Comments
Read more about the article How to Add Angular Material Components Correctly
Import Angular Material

How to Add Angular Material Components Correctly

In this post, I will show you how to add Angular Material components in an Angular application. Importing UI components directly in the app.module increases the size of the module. The root module should be easy to maintain. Importing a button is not a great idea here. For example, consider…

2 Comments
Read more about the article Creating a Scalable Angular Project Structure
Angular Project Structure

Creating a Scalable Angular Project Structure

In this post, we create a scalable Angular project structure that is ideal for medium to large applications. [toc] Introduction Although Angular CLI does a great job at generating a new project, it does not force you to use a specific folder structure. Your initial project contains a single module,…

5 Comments
Read more about the article Angular Logging Made Simple with ngx-logger
Logging in Angular with ngx-logger

Angular Logging Made Simple with ngx-logger

In my previous post, I talked about catching all errors in Angular with a global error handler. If you want to keep the errors you capture, you need to implement a reliable logging mechanism. Today, I want to explain how to enable Angular logging in your applications with ngx logger…

16 Comments
Read more about the article Global Error Handling in Angular – Step by Step Tutorial
Angular Global Error Handling

Global Error Handling in Angular – Step by Step Tutorial

In this post, we will implement global error handling in Angular. Global error handling is one of the first things I implement in a new project. It helps avoid repetitive try/catch blocks in Angular components, services or directives. It gives me confidence that all errors will be captured consistently. Create…

0 Comments
Read more about the article Getting Started with Angular Step by Step
Getting Started with Angular

Getting Started with Angular Step by Step

Angular is a single page application (SPA) development framework for well-structured, testable and maintainable front-end applications. It is one of the most-widely used application framework in the world. According to Stack Overflow Developer Survey, Angular is used by 36.9% participants. Angular's popularity is due to its compatibility across platforms. Apps…

0 Comments
Read more about the article Installing SQL Server 2019 on MacOS
Run SQL Server on Mac with Docker

Installing SQL Server 2019 on MacOS

Installing with SQL Server on a non-Microsoft platform was a dream just a few years ago. With the release of SQL Server 2017, Microsoft made it possible to directly install SQL Server on Unix-based operating systems. Since MacOS is Unix-based, we can directly install SQL Server on it using Docker.…

2 Comments