Latest Articles & Lessons - Page 5

How to Handle Errors Globally in Angular

How to Handle Errors Globally in Angular

Posted Sep 2, 2018 | | Maina Wycliffe | Angular
By default, when errors occur in Angular during runtime, they are written to the browser console. This is great during development and testing but not great when running on production. This is one environment where you have no access to. And the …
Read More

Logging HTTP Errors in Angular 6

Logging HTTP Errors in Angular 6

Posted Aug 26, 2018 | | Maina Wycliffe | Angular
In my last post, I looked at how you can use HTTP Interceptors to attach and refresh authorization tokens. In this post, we are going to use the same HTTP Interceptor to catch HTTP errors – 500, 401, 400 etc. – and logging them remotely. It is …
Read More

Lazy Loading Images in Angular 6

Lazy Loading Images in Angular 6

Posted Aug 13, 2018 | | Maina Wycliffe | Angular
In most web apps, images form a huge chunk of the size of the content. If you had, let’s say over 50 images with each having 100Kbs (after compression and resizing) in size, the total of that would be 100 x 50 which is 5MBs in total size. While …
Read More

Options for Deploying Angular Apps

Options for Deploying Angular Apps

Posted Aug 10, 2018 | | Maina Wycliffe | Angular
We all develop application so that other people can use them, it’s not different for Angular apps. In this post, I will focus on options for deploying angular apps. This guide is applicable to almost all JavaScript Frameworks – with a few …
Read More