September 2017
Intermediate to advanced
450 pages
11h 24m
English
Let's provide a caching strategy for our BlogPosts service. We'll build a cache of blog post results when we load them for the first time. After that, if we request the same data, it will simply load from a cache instead of making another HTTP request for the same data.
Before getting started, we will need to make a new class for our cached blog post pages. We'll create a new model for our pages called PostPage, using Angular-CLI generate:
ng generate class posts/post-page
Read now
Unlock full access