我需要将数据从angular material bottomsheet传递到它的父组件。就像我们在angular material对话框组件中有[mat-dialog-close]指令一样,我们可以像https://material.angular.io/components/dialog/api#MatDialogClose中提到的那样将数据从对话框传递</
我是新在Angular2+和阅读了很多材料,包括角网站。但是在我的代码中,我有两个不同的模块,每个模块都有一个组件。如何将对象值从component1的Module1传递到Module2的component2?我尝试了@ but (),但没有成功,从上面的Argular链接中可以看出,输入()指的不是我的父母/孩子,根据我
我发出了一个HTTP请求,并获得了一个id和数据数组(来自json ),到目前为止,我已经能够在屏幕上成功地打印这些数据(比如这个<li *ngFor="#date of dates">{{date.date2}我希望在另一个组件component2中使用该数组:export class HeroListComponent implements OnInit {