Ionic tabs with dynamic lists


I create an ionic project with tabs that displays dynamic list using this code in services.js:

.factory(‘Interventions’, function($http) {
var interventions = {};
method: ‘POST’,
url: ‘
success(function(data, status, headers, config) {
interventions = data;
return {
all: function() {
return interventions;
get: function(iid) {
return interventions[iid];

The problem is that my application didn’t display the list at first when I load the page but only when i refresh it (with doRefresh) or when i go to other tab and back to the first one.
Is there a solution to fix that ?
Thank you in advance