大家好,我是新来的angular6如何获取数据到组件,我已经从incident.component.ts中的应用程序接口中获取了数据,现在我在incident.component.html中有一个名为查看详细信息的按钮,当单击查看详细信息按钮时,它将使用router.navigate导航到事件详细信息组件,现在我想将事件component.ts中的数据发送到事件详细信息组件。
incident.component.html
<div class="card" *ngFor="let incident of incidents; let i = index"