© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
V. H. GarciaGetting Started with Angularhttps://doi.org/10.1007/978-1-4842-9206-8_8

8. Blog App Part 3: Showing Posts

Victor Hugo Garcia1  
(1)
Santiago Del Estero, Santiago del Estero, Argentina
 

Our goal in this chapter is to build a component that represents an individual post, which will be displayed on the home page. This also implies adding a collection in our database that allows hosting these posts.

Modifying the User Class

At the moment, we have a user class in our frontend with the following form:
export class User {
   private username = '';
   private password = '';
   constructor(username: string, password: string) {
       this.username = username;
       this.password ...

Get Getting Started with Angular: Create and Deploy Angular Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.