You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
568 B
TypeScript

import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
import { Product } from 'src/app/models/product';
@Component({
selector: 'app-product-item',
templateUrl: './product-item.component.html',
styleUrls: ['./product-item.component.scss']
})
export class ProductItemComponent implements OnInit {
@Input() product: Product =
{
id: 1,
name: "",
price: 0,
url: "",
description: "",
quantity: 0
}
@Output() marked: EventEmitter<Product> = new EventEmitter;
constructor() { }
ngOnInit(): void {
}
}