Ionic 2 Events, publish and subscribe not working

前端 未结 3 2110
心在旅途
心在旅途 2021-01-18 12:04

I\'m trying to use Publish and Subscribe from ionic-angular

But I am not receiving any data nor error. Here are my codes

Page 1

3条回答
  •  时光说笑
    2021-01-18 12:36

    Call the .subscribe inside constructor.

    and insted of console.log(data[0]) have you tried with console.log(data) ?

提交回复
热议问题