Angular PWA Demo

At this point, you have all the knowledge needed to analyze and understand an entire PWA project implemented with Angular. Let's run it!

We'll cover the following

Demo code

The widget below contains all the code portions needed for building an Angular PWA.

This simple demo covers all the important topics we studied in the previous lessons:

  • Offering a responsive layout: The cards are side by side on large screens but on top of each other on mobile devices.

  • Caching static assets: .js, .html, icons

  • Caching GET calls: according to different caching strategies (Performance and Freshness).


The cards in the demo gather their content from two different APIs:

When we have this application running on our machine, we can refresh the browser to see that the daily joke text is static and loads very quickly, while the cat photo is replaced each time, unless a timeout occurs. In case of a timeout, the latest cached photo will be provided, if available.
This behavior is aligned to the caching strategies chosen for each endpoint, as we designated previously.
The application should look like the image below:

Get hands-on with 1400+ tech skills courses.