Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Beginning Server-Side Application Development with Angular

You're reading from   Beginning Server-Side Application Development with Angular Discover how to rapidly prototype SEO-friendly web applications with Angular Universal

Arrow left icon
Product type Paperback
Published in Apr 2018
Publisher
ISBN-13 9781789342161
Length 110 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Bram Borggreve Bram Borggreve
Author Profile Icon Bram Borggreve
Bram Borggreve
Arrow right icon
View More author details
Toc

Chapter 2. Creating the Application Module and Components

In this lesson, we will start by creating a PostsModule that contains all the code related to displaying the posts that come from our API.

Inside this module, we will add various components, a service, and two resolvers.

The components are used to display the data in the browser. We will go over their use in this lesson. The service is used to retrieve the data from the API. Lastly, we will add resolvers to our app; resolvers make sure the data from the service is available at the moment we navigate from one route to another.

You have been reading a chapter from
Beginning Server-Side Application Development with Angular
Published in: Apr 2018
Publisher:
ISBN-13: 9781789342161
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at R$50/month. Cancel anytime