Ionic slide box


I have questions regarding ionic slide box.
I made a slide box using ng-repeat and i tried to get total count of slides with $scope.totalSlides = $ionicSlideBoxDelegate.slidesCount(); but the value doesn’t seem to be there when i first open the page. The value only there after a change has been made, like sliding the box. How do i get the total number of slides when open the page ?
Also the current active slide doesn’t seem to be reset even after i update the slide box using $ionicSlideBoxDelegate.update();