lorenzoiovino.com/src/app/post-card/post-card.component.ts
2023-12-31 01:04:33 +01:00

17 lines
420 B
TypeScript

import {Component, Input} from '@angular/core';
import {Post} from "../models/post";
import {JsonPipe, NgOptimizedImage} from "@angular/common";
@Component({
selector: 'iov-post-card',
standalone: true,
imports: [
JsonPipe,
NgOptimizedImage
],
templateUrl: './post-card.component.html',
styleUrl: './post-card.component.scss'
})
export class PostCardComponent {
@Input() post: Post | undefined;
}