ng-iScroll icon indicating copy to clipboard operation
ng-iScroll copied to clipboard

TypeError: Cannot read property 'myScrollOptions' of null

Open bugwelle opened this issue 10 years ago • 2 comments

I get this error:

TypeError: Cannot read property 'myScrollOptions' of null

I think this is because there's some point in my code where I use ng-iScroll where I don't have a controller.

Could you check first if $scope.$parent is available?

Regards, Andre

// Edit: I use ng-iScroll 1.2.b, AngularJS 1.1.4

bugwelle avatar Jul 23 '13 12:07 bugwelle

Its really a bad idea to use the parent. Why not allow an object of parameters to be parsed in during initialization?

johannesjo avatar Oct 05 '13 01:10 johannesjo

+1

jpwesselink avatar Apr 23 '14 07:04 jpwesselink