When do I know GeoFire is finished loading as it is Event based trigger

后端 未结 1 1270
南笙
南笙 2021-01-27 15:13

So I used GeoFire and AngularFire for populate my ng-repeat item lists. There is an ionic pull to refresh list. So user pull it and get the current updated location and refresh

1条回答
  •  误落风尘
    2021-01-27 15:46

    Geofire fires a "Query Ready" event when:

    All current data has been loaded from the server and all initial events have been fired.

    See this section of the Geofire documentation.

    The code sample from there:

    var onReadyRegistration = geoQuery.on("ready", function() {
      console.log("GeoQuery has loaded and fired all other events for initial data");
    });
    

    0 讨论(0)
提交回复
热议问题