Call function from one component to another


i am using angular 6.
I have two buttons. i have created two buttons in one component 1.if i press first buttons it needs to call the first function in component 2.if i press second button it needs to call the second function in component to do this. please help me.

Thank you,

thank you for the solution.

i was calling the database data by using ipc to call more than two files by using ipccall.

@sindhu123, @umeshsingh781: these do not appear to be Meteor-related questions.

1 Like