How to Use Angular @Input to Pass Data to Dynamically Created Components
2024-2-28 06:35:51 Author: hackernoon.com(查看原文) 阅读量:6 收藏

Hackernoon logo

How to Use Angular @Input to Pass Data to Dynamically Created Components by@briantreese

Too Long; Didn't Read

Angular 16 allows you to pass data between dynamically created components from the parent to the child. Previously, we had to provide the info in the parent and then inject it within the child component. Now, we can do this using the `@Input` decorator instead.

featured image - How to Use Angular @Input to Pass Data to Dynamically Created Components

Brian Treese HackerNoon profile picture


@briantreese

Brian Treese


Hello I'm the Chief of UX at SoCreate. I build things for the web daily & write about the stuff I use/discover/encounter


Receive Stories from @briantreese

react to story with heart

RELATED STORIES

Article Thumbnail

Article Thumbnail

Article Thumbnail

Article Thumbnail

Article Thumbnail

L O A D I N G
. . . comments & more!


文章来源: https://hackernoon.com/how-to-use-angular-input-to-pass-data-to-dynamically-created-components?source=rss
如有侵权请联系:admin#unsafe.sh