© 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_11

11. Blog App Part 6: Editing Posts

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

In this chapter, we will focus on editing posts, getting closer to finalizing the basic functionality of the application, although of course there will be details that we will have to deal with later.

Frontend Post Model

As a first step, we will add three new methods to our Post model. In the file post.model.ts, add:
setTitle(title: string) {
  this.title = title;
}
setText(text: string) {
  this.text = text;
}
setId(id: string) {
  this.id = id;
}
There are three setters, and ...

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.