Overview:
I am making a network request to populate the list when my page loads in the Ionic 2 application. At this point, I switch the ion counter when the page initially loads. This update is currently:
<ion-refresher (ionRefresh)="doRefresh($event)">
<ion-refresher-content
pullingText="Pull to refresh..."
refreshingSpinner="circles">
</ion-refresher-content>
</ion-refresher>
<ion-spinner *ngIf="loading" color="light" name="circles"></ion-spinner>
My desired behavior was to remove the ion spinner component and simply enable ion refresh when the page initially loads. I saw a couple of examples of this with Ionic V1, but I can't translate it to Angular 2.
Question:
Is there a way to start the ion-updater and its counter from my controller (* .ts) so that I can remove the extra ion counter component from my template?