1Parent component:
2<app-child-component [item]="data"></app-child-component>
3
4Child component.ts
5import { Component, Input } from '@angular/core'; // First, import Input
6export class ItemDetailComponent {
7 @Input() item = ''; // decorate the property with @Input()
8}