📅  最后修改于: 2022-03-11 15:01:18.182000             🧑  作者: Mango
Parent component:
Child component.ts
import { Component, Input } from '@angular/core'; // First, import Input
export class ItemDetailComponent {
@Input() item = ''; // decorate the property with @Input()
}