Posts

@if (isLoading) {

Loading posts...

} @else if (errorMessage) {

{{ errorMessage }}

} @else if (posts.length === 0) {

No posts found.

} @else {
@for (post of posts; track post) { {{ post.title }}

{{ post.content || 'No content' }}

UserId: {{ post.userId }}

}
}