Ionic2: Unsubscribe Event to Avoid Duplicate Entries?
问题 I've followed this tutorial which outlines adding monitoring beacons in an Ionic 2 application. I have it working great: when the view loads, it initializes and begins listening for beacons: home.ts ionViewDidLoad() { this.platform.ready().then(() => { this.beaconProvider.initialise().then((isInitialised) => { if (isInitialised) { this.listenToBeaconEvents(); } }); }); } This calls the listenToBeaconEvents function which populates a list in the view with all of the beacons: home.ts