This commit is contained in:
Max Lynch
2013-11-08 17:25:54 -06:00
parent d082c0c148
commit b94a2e7c10
6 changed files with 50 additions and 111 deletions

View File

@ -22,7 +22,8 @@ angular.module('ionic.ui.content', [])
transclude: true,
scope: {
onRefresh: '&',
onRefreshOpening: '&'
onRefreshOpening: '&',
scroll: '@'
},
compile: function(element, attr, transclude) {
return function($scope, $element, $attr) {
@ -43,7 +44,9 @@ angular.module('ionic.ui.content', [])
}
// If they want plain overflows scrolling, add that as a class
if(attr.overflowScroll === "true") {
if($scope.scroll === "false") {
// Do nothing for now
} else if(attr.overflowScroll === "true") {
c.addClass('overflow-scroll');
} else {
// Otherwise, supercharge this baby!