Android 4.2.2 Issue with ionRefresher on 1.0.0-beta.2 Aluminum


#1

when i update to the newest version, i encountered:
Controller '$ionicScroll', required by directive 'ionRefresher', can't be found!

Failed to execute 'appendChild' on 'Node': This node type does not support this method.

I using Android 4.2.2 ,Hope that people can help me tackle them. Thanks


#2

Hi,

Can you post your HTML?

Thanks.


#3

tks @andy my code:

    </ion-header-bar>
    <ion-content ng-if="!status.hasRouter">
        <ion-refresher on-refresh="doRefresh()"
                       pulling-text="Kéo xuống để cập nhật..."
                       refreshing-text="Cập nhật danh sách!"
                       refreshing-icon="ion-loading-c"
                       class="refresher">
        </ion-refresher>
        <ion-list>

            <div class="list">
                <ion-slide-box show-pager="false"
                               ng-repeat="item in lists | orderBy:'distance':false | limitTo : 8">
                    <ion-slide>
                        ....
                    </ion-slide>
                    <ion-slide>
                       ...
                    </ion-slide>
                </ion-slide-box>
            </div>
        </ion-list>
    </ion-content>
    <ion-content ng-if="status.hasRouter" class="see-info">
        <div class="list">

         ....

        </div>
    </ion-content>

</ion-side-menu> 

#4

Could you try taking the ng-if off of the ion-content and lemme know?


#5

okey! tks @andy, but i want using ng-if!What should I do ?


#6

Also with out ng-if is not working…


#7

@andy: look at this code pen, which is a fork of an existing one: http://codepen.io/priand/pen/rVRJEm
It fails with the same error. If you remove ng-if at line #30, then it works.
A workaround if to wrap the content in a div and add the directive to the div.