Is there any way to send the event between the service and component in angular2

时间:2017-02-24 16:01:52

标签: angular angular2-modal

I am using angular2-modal for the modal alert. I just want to get the confirm event from the modal. How can I get that?

1 个答案:

答案 0 :(得分:0)

我可以根据@ yurzui的答案实现这一点。 当我们关闭模态时,我们使用这个函数,

this.dialog.close();

如果我们使用带参数的函数,那么我们可以得到点击按钮的结果。