I'm having trouble in implementing ng-scrollbar inside angular modal . If I use ng-scrollbar in a normal html page ,then it works fine. However , if use it inside andgular modal window, its doesn't work . I'm using a separate html template to load the modal template .
$scope.searchModal = function() {
$scope.opts = {
keyboard: true,
templateUrl : '/app/view/modal/search_content.html',
controller : SignUpModalICtrl,
backdrop: 'static', //to make the backdrop static
resolve: {} // empty storage
};
$scope.opts.resolve.item = function() {
return ({name:$scope.name}); // pass name to Dialog
}
var modalInstance = $modal.open($scope.opts);
modalInstance.result.then(function(){
},function(){
//on cancel button press
});
}
search_content.html
<div class="scrollme" ng-scrollbar rebuild-on="rebuild:me">
<h1>Scroll me down!</h1>
<p>...</p>
<p>...</p>
<p>...</p>
<p>...</p>
<p>...</p>
<p>...</p>
<p></p>
</div>
</div>
There is no scrollbar in the result modal window .