Angular 4 pass data between 2 not related components

前端 未结 5 1577
栀梦
栀梦 2020-11-27 13:47

I have a questions about passing data in Angular.

First, I don\'t have a structure as

5条回答
  •  时光说笑
    2020-11-27 14:04

    Here is the simplest example of sharing data between two independent components, using event emitter and service

    https://stackoverflow.com/a/44858648/8300620

提交回复
热议问题