List not being displayed in mobile

Hi everyone i’m having some problems getting a contact list to display after getting the data from the server but if i reload the url it would work as expected but if i navigate to the page it wont work all the data is being loaded correctly.

var getContacts = function () {



             $ionicLoading.show({
             template: '<ion-spinner></ion-spinner>'
             });



            var deferred = $q.defer();
            var currentUser = Parse.User.current().getUsername();
            var Contacts = Parse.Object.extend("Contacts");
            var query = new Parse.Query(Contacts);
            query.equalTo("createdBy", currentUser);
            query.find({
                success: function (contacts) {

                    var contactList = [];
                    for (var i in contacts) {
                        var query = new Parse.Query(Parse.User);
                        query.equalTo("username", contacts[i]._serverData.contactUsername);
                        query.ascending("displayName");
                        query.find({
                            success: function (users) {
                                contactList.push(users);

                            },
                            error: function (error) {
                              console.log(error)
                            }
                        });


                    }
                    
                    $rootScope.$watch(function () {
                        return contactList;
                    }, function (newVal, oldVal) {

                        if (newVal.length == contactList.length) {
                            deferred.resolve(contactList);
                            $ionicLoading.hide();

                        }
                    })



                },
                error: function (error) {
                    deferred.reject(error.message)
                }
            });


            return deferred.promise;
        }

Could you put together a codepen demo?

Thanks but i fixed it with

var contactList = [];

 angular.forEach(users, function (value, key) {
                                    this.push(value._serverData);
                                }, contactList);