Angular: Component Communications (Parent to Child)

preview_player
Показать описание
Passing data from the Parent down to the Child component is quite straight forward. The only requirement is for the Child component to import the Input class to receive the input. In the Child component, it would use the @Input() decorator to receive the input data from a Parent component.

Note: In Angular, the Child component has no way of knowing its parent component.

⭕ About me

⭕ My complete online training courses:

⭕ Check out my book:
Developing Business Applications for the Web: With HTML, CSS, JSP, PHP, ASP.NET, and JavaScript is available on Amazon and MC Press.
Рекомендации по теме