I have list of tasks being displayed in the UI using ngFor.
How can I pass data to another page when I click edit in the following. It has to pass the data corresponding to the datacard on which the Edit button is clicked.
<div *ngFor="#task of tasks">
<div class="mdl-card__title mdl-card--expand mdl-color--teal-300">
<h2 class="mdl-card__title-text">{{task.taskname}}</h2>
</div>
<div class="mdl-card__supporting-text mdl-color-text--grey-600">
{{task.taskdesc}}
</div>
<div class="mdl-card__actions mdl-card--border">
<a href="#" class="mdl-button mdl-js-button mdl-js-ripple-effect">{{task.assignedto}}</a>
<a href="#" class="mdl-button mdl-js-button mdl-js-ripple-effect">Mark Completed</a>
<a href="#" class="mdl-button mdl-js-button mdl-js-ripple-effect">EDIT</a>
</div>
</div>