Tutorials, guides and articles on Angular framework.

Making Styles Work with [innerHtml] in Angular

In this post, we'll look at how we can apply styles to html content rendered via innerHtml attribute. By default, styles defined in an Angular component only work in that specific component. This is due to the Emulated view encapsulation policy set by Angular. This logical scope is great because…

  • Post category:Angular
  • Post comments:0 Comments
  • Reading time:2 mins read

How to Queue Messages Sent to LiveAnnouncer

Angular provides LiveAnnouncer service to trigger screen reader announcements programmatically. It works well in simple scenarios but fails to queue messages when used concurrently. In this post, I will show you how to extend LiveAnnouncer to announce simultaneous messages. Problem demonstration There are many things to consider when it comes…

  • Post category:Angular
  • Post comments:0 Comments
  • Reading time:3 mins read

5 Angular CLI Tips You Should Know

As Angular developers, we often interact with the command-line interface (CLI) to scaffold components and manage packages. It is very important to master the CLI to make sure your development flow is smooth. Having developed several Angular applications myself, I have come to realise the 5 tips below. Shorten commands…

  • Post category:Angular
  • Post comments:0 Comments
  • Reading time:4 mins read

How to Use PDFjs to Parse PDF Documents in Angular

In this post, I'll show you how to parse a PDF document in Angular. We will extract full text content of a PDF file using pdfjs-dist library. Generate a new Angular application, if you do not have one already: ng new PdfReader Install the latest version of pdfjs-dist from npm:…

  • Post category:Angular
  • Post comments:5 Comments
  • Reading time:2 mins read

Monitoring Live Angular Apps with Application Insights

In this post, I will explain how you can monitor Angular apps using Microsoft Azure Application Insights. It is not unusual for organisations to ignore monitoring single page applications. Usually, back-end applications such as APIs are monitored via logs, CPU and memory usage. When it comes to front-end, there is…

Best Visual Studio Code Extensions for Angular Developers

Without a doubt, Visual Studio Code is one of the most popular front-end IDEs. It's popularity is due to its speed and customisability with extensions from the marketplace. Even though Microsoft has been improving VS Code to include new features, there are still missing features! I will share the best…

  • Post category:Angular
  • Post comments:2 Comments
  • Reading time:3 mins read

Simplifying Angular Components with Route Resolvers

I often come across Angular components that retrieve data from a remote API inside the ngOnInit lifecycle hook. While this is an easy way to load data into the component, it can can increase the size of the component and lead to duplication. A better approach is to use route…

  • Post category:Angular
  • Post comments:1 Comment
  • Reading time:4 mins read

Angular Testing Overview: Unit, Integration & E2E Tests

Angular is a modern, highly performant application framework. Learning Angular is one of the best things you can do in your career as a web developer. But it is no good if your code does not work, which is where a good test suite comes into play. I have built…

  • Post category:Angular
  • Post comments:0 Comments
  • Reading time:10 mins read

Monitoring Live .NET Core APIs with Application Insights

Azure Application Insights is a cloud based application monitoring service from Microsoft. You can monitor your applications in all of your environments with Application Insights, including development and production. Microsoft has been shipping Visual Studio with built-in support for Application Insights in Windows. However, Visual Studio for Mac does not…

Execute Angular E2E Tests in Different Environments

The default Angular project template executes end-to-end tests using the development environment. If you're like me and switch to a Mac from Windows quite frequently, you may want to have the ability to execute your e2e tests in a different configuration. We will enable executing Angular e2e tests in different…

  • Post category:Angular
  • Post comments:0 Comments
  • Reading time:2 mins read

What’s New in Angular 8? [Update Guide]

Angular 8 is finally here! In this post we will look at what's new in Angular 8. Angular 8 is a major release for the entire Angular framework, Angular Material and the CLI. Ivy renderer to be available as an opt-in previewFaster startup time on modern browsersNew APIs to interact…

  • Post category:Angular
  • Post comments:0 Comments
  • Reading time:5 mins read

How to Prevent Caching Get Requests in Angular

In this post, we will explore how to prevent caching get requests in Angular. This is an old issue that gets me every time I begin working on a new Angular project. Internet Explorer caches all GET requests, which means that a user won't see any changes after a database…

  • Post category:Angular
  • Post comments:3 Comments
  • Reading time:3 mins read