ng-iScroll
ng-iScroll copied to clipboard
TypeError: Cannot read property 'myScrollOptions' of null
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
Its really a bad idea to use the parent. Why not allow an object of parameters to be parsed in during initialization?
+1