Angular : Model
introduction
model is used when we want to define custom type of the data,
here the model name is Post has three attributes two are compulsory and one is not compulsory.
export interface Post {
title:string;
content:string;
id?:string;
}...
hashcodehub.hashnode.dev1 min read