大家好,我是新来的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"
header.component.html有一个按钮,当你点击,菜单桅杆显示在users.component.html.中单击“添加类到”按钮。当单击标题中的按钮(没有jQuery)时,如何将类添加到菜单块?
header.component.ts
import {Component} from '@angular/core';
import {Router} from "@angular/router";
import {GlobalService} from "../../global.service";
@Component({
se