I wouldike to send data from another component but it does not work when I am doing this :
source.html:
<app-heat [value]="selectedValue" [list]="values"> </app-heat>
source.ts :
selectedValue = {
Name: '',
Matricule: '',
}
values = [{
Name: "Container A",
Matricule: "ABC",
},
{
Name: "Container B",
Matricule: "BCD",
},
destination data for another component :
destination.html
<input type="checkbox" *ngFor="let v of list;let i = index" [list]="i">{{list}}<br>
destination.ts
@Input() value: string;
@Input() list: string;
I need to get data from values (name : Container A and Container B) on my input checkbox.
listName? Please create a stackblitz to reproduce your error.