I'm trying to pass an object to a component in an angular template:
<note-setting
*ngFor="let setting of settings"
[settingData]="setting"
></note-setting>
how do I do this correctly? the setting that is declared in the *ngFor should be passed in the [settingData] field to the note-setting component.
I don't understand why this is so difficult to figure out, I've been using react for 3 years and it's so much simpler, I just do:
settings.map(setting => <NoteSetting settingData={setting} />)
Also, every angular tutorial I've seen only shows how to pass primitive types like ints and strings.