//1.子组件自定义属性接收父组件传递过来的参数<app-MovieItem [title]="title"></app-MovieItem>
//2.在子组件中使用@Input进行注册import { Component, OnInit,Input } from '@angular/core';export class MovieItemComponent implements OnInit {@Input() title!: String;}
//3.在子组件的模板中直接使用<p>{{title}}</p>
