In nightly $ionicSlideBoxDelegate.update(); stoped working.
But $scope.$ionicSlideBoxController.update(); dosen’t work as well. How can I update slidebox?
This is in flux right now. See :
CAUTION: Either of these methods is likely to change in the beta & nightlies.
and
Devs are working on getting the API right for $ionicXXXXControllers.
Hi Justin,
The problem here is that the slideBoxController is on a lower scope than MyCtrl.
Possible solutions:
- Move the ng-controller declaration down (it would work if you did
<ion-content ng-controller="MyCtrl">
http://codepen.io/ionic/pen/79c111567548c1ea07217818f9b91bae/- Assign the controller for the scroll to rootScope or the like.
<ion-slide-box controller-bind="$root.$ionicSlideBoxController">
http://codepen.io/ionic/pen/41475b8566e306b8848aa15bd5a6274f/
2 Likes