title: How to auto update data on ionic list without refreshing the page
body: <p>I created a page that contains ionic list and there was two buttons if clicking on that button it call a firebase api and it get updated. ones it updates, whole list get refresh. How to stop refresh of whole list.  </p>
  
  <p><a href="https://i.stack.imgur.com/bMdL7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bMdL7.png" alt="enter image description here"></a></p>
  
  <pre><code> onLocationDataUpdate() {
      // Get current location
      this.geolocation.getCurrentPosition().then(position =&gt; {
        this.location.lat = position.coords.latitude;
        this.location.lng = position.coords.longitude;
  
        // Get location data from Firebase
        this.connectivityServiceService.getLocations(
          this.locatingRange,
          this.location.lat,
          this.location.lng
        );
  
        // Bind data to Ionic list
        this.dataSetSubscription = this.connectivityServiceService.geoPointLocationUpdateNotify.subscribe(
          locations =&gt; {
            const locationData = this.connectivityServiceService.getGeoPointLocations();
            if (locationData.length &gt; this.maxDataCount) {
              const tempLocationData = locationData.slice(0, this.maxDataCount);
              tempLocationData.forEach(item =&gt; {
                if (item.feed_back === undefined) {
                  item = Object.assign(item, {
                    feed_back: { count: 0, positive: [], negative: [] }
                  });
                }
              });
              this.geoPointLocationData = tempLocationData;
              this.loader.dismiss();
            } else {
              const tempLocationData = locationData;
              tempLocationData.forEach(item =&gt; {
                if (item.feed_back === undefined) {
                  item = Object.assign(item, {
                    feed_back: { count: 0, positive: [], negative: [] }
                  });
                }
              });
              this.geoPointLocationData = tempLocationData;
              this.loader.dismiss();
            }
          }
        );
      });
    }
  </code></pre>