Communicate between sibling components Angular 2

后端 未结 3 1312
我寻月下人不归
我寻月下人不归 2020-12-29 00:07

I tried to follow this answer but its too confusing Angular 2 event catching between sibling components

I want to call a method in child component 1

3条回答
  •  悲&欢浪女
    2020-12-29 00:24

    An alternative (template-only way) is

    
    
    

    The event handler references by the template variable #audioPlayer.

提交回复
热议问题