Posts with Angular Tag

How to Add Async Validators to an Angular Reactive Form

How to Add Async Validators to an Angular Reactive Form

July 22, 2019 01:00AM | Angular
Occasionally, you may want to validate form input against data that is available asynchronous source i.e. a HTTP backend. For instance, checking if a username or email address exists before form submission. In Angular, you achieve this using Async Validators, which we are going …

Customizing Angular App Behavior per Build Environment

Customizing Angular App Behavior per Build Environment

July 2, 2019 08:33AM | Angular
If you have used angular for even a brief period, you probably have come across the environment configuration files. By default, they are two of them – one for production and another for development. They allow you to specify configs or settings that are unique to a specific …

Working With Assets and Global Styles and Scripts in Angular

Working With Assets and Global Styles and Scripts in Angular

February 25, 2019 12:40AM | Angular
In this post, we are going to take a closer look at how we to work with assets (web assets) and global styles and scripts on our angular project. The three (Assets, Styles and Scripts) cover all the resources you might need for your Angular app. We will cover common scenarios …

Separating Dev and Prod Environment on Firebase

Separating Dev and Prod Environment on Firebase

February 16, 2019 05:24AM | Angular
It is common for developers to setup multiple environments for our application. This usually include a development/staging and production environment. This gives us the freedom to experiment with our development/staging environment, without messing with the production …

Changing Angular Material Form Field Appearance

Changing Angular Material Form Field Appearance

February 4, 2019 01:20AM | Angular
Material design has been with us for the last few years. The material guidelines spec sheet, found here, has evolved since the original design, on release. This can be seen in various Google products, as they continue updating their products according to the updated spec sheet. …

Using OS Environment Variables in Angular (with Docker)

Using OS Environment Variables in Angular (with Docker)

January 13, 2019 01:39PM | Angular
Angular has its way of handling different target environments, through angular environments files – which you can learn more about here. The issue with this approach is that it requires you to commit keys and configuration to your version control. This is not a big problem …

Creating a Filter Method for Angular Async Pipe

Creating a Filter Method for Angular Async Pipe

December 13, 2018 04:43PM | Angular
In a previous post earlier this week, we looked at how we can handle errors when using Angular Async Pipe. In this post, we are going to build a simple filter method for Angular Async Pipe. We are going to use a custom pipe to filter results, then pass an observable back to …

Angular Async Pipe – How to Handle Errors

Angular Async Pipe – How to Handle Errors

December 11, 2018 11:32AM | Angular
In this post, I am going to show you a very simple yet effective way of handling errors when using Async Pipe in Angular. If you are new to async pipe, it basically allows you to subscribe to observables and promises right inside your templates. Below is a simple example of how …

Entry Components in Angular - What are they?

Entry Components in Angular - What are they?

December 7, 2018 12:14PM | Angular
In this post, we are going to look at Entry Components in Angular, what they are and why they even exist. In the simplest terms possible, an entry component in Angular is any component that is loaded by its class, not selector. @Component({ selector: …

Building a Simple Responsive App with Angular Flex Layout

Building a Simple Responsive App with Angular Flex Layout

December 5, 2018 04:48AM | Angular
In the last post, which you can find here, we introduced Angular Flex Layout. We looked at the APIs/Directives available to you as a developer and how you can use them. In this post, we are going to build on that foundation. Our goal here is very simple, building a simple …

Angular Flex Layout – Introduction & Getting Started

Angular Flex Layout – Introduction & Getting Started

November 19, 2018 02:10AM | Angular
In this post, I am going introduce and look at how you can get started with Angular Flex Layout. We will briefly introduce the APIs for Angular Flex Layout and look at how to add it to your project. Angular Flex Layout is a stand-alone library developed by the Angular Team for …