I have a list of cards, each card has some data like {"phone":"333-123-4566", "cust_name":"john smith"}
I have a list component and a card component to display the phone and name.
How does angular2 or angular4 pass the item data into card component? I need to know which card is clicked and display the right phone/name.
In Angular 1, it was very simple with ngModel, but I am not finding a simple solution in angular2/4.
<ul>
<li *ngFor="let item of items; let i=index;">
<a routerLink="/card" > {{item.cust_name}} </a>
</li>
</ul>