aquint / ion-alpha-scroll

Alphabetically indexed list with alpha scroll bar.
99 stars 35 forks source link

undefined is not an object (evaluating 'scope.items.length') #16

Open arunchiluveru opened 8 years ago

arunchiluveru commented 8 years ago

Hi, I noticed there is a problem init as it isn't working anymore, got an undefined error. I Followed the same procedure as per your installation. I am using cordova@6.1.1, ionic 1.7.16. Could you please look into it.

Error: undefined is not an object (evaluating 'scope.items.length') $render@file:///var/containers/Bundle/Application/D5300B8F-55A1-4CBC-AD80-12368A8A0015/ConnectedLife.app/www/lib/ion-alpha-scroll/src/ion-alpha-scroll.js:52:37 ngModelWatch@file:///var/containers/Bundle/Application/D5300B8F-55A1-4CBC-AD80-12368A8A0015/ConnectedLife.app/www/lib/ionic/js/ionic.bundle.js:40108:21 $digest@file:///var/containers/Bundle/Application/D5300B8F-55A1-4CBC-AD80-12368A8A0015/ConnectedLife.app/www/lib/ionic/js/ionic.bundle.js:30230:37 $apply@file:///var/containers/Bundle/Application/D5300B8F-55A1-4CBC-AD80-12368A8A0015/ConnectedLife.app/www/lib/ionic/js/ionic.bundle.js:30503:31 file:///var/containers/Bundle/Application/D5300B8F-55A1-4CBC-AD80-12368A8A0015/ConnectedLife.app/www/lib/ionic/js/ionic.bundle.js:65426:19 defaultHandlerWrapper@file:///var/containers/Bundle/Application/D5300B8F-55A1-4CBC-AD80-12368A8A0015/ConnectedLife.app/www/lib/ionic/js/ionic.bundle.js:16787:15 eventHandler@file:///var/containers/Bundle/Application/D5300B8F-55A1-4CBC-AD80-12368A8A0015/ConnectedLife.app/www/lib/ionic/js/ionic.bundle.js:16775:23 dispatchEvent@[native code] triggerMouseEvent@file:///var/containers/Bundle/Application/D5300B8F-55A1-4CBC-AD80-12368A8A0015/ConnectedLife.app/www/lib/ionic/js/ionic.bundle.js:2953:20 tapClick@file:///var/containers/Bundle/Application/D5300B8F-55A1-4CBC-AD80-12368A8A0015/ConnectedLife.app/www/lib/ionic/js/ionic.bundle.js:2942:20 tapTouchEnd@file:///var/containers/Bundle/Application/D5300B8F-55A1-4CBC-AD80-12368A8A0015/ConnectedLife.app/www/lib/ionic/js/ionic.bundle.js:3069:13

dam1 commented 7 years ago

Your data is probably loading, add a ng-if <ion-alpha-scroll ng-if="model" ng-model="model" key="keyName" subheader="true">