Early virtual directive stuff

Don't use any of this yet.
This commit is contained in:
Max Lynch
2013-10-30 12:32:25 -05:00
parent 979fe8fb7b
commit ab896be994
5 changed files with 728 additions and 30 deletions

View File

@ -0,0 +1,24 @@
(function() {
'use strict';
angular.module('ionic.ui.virtRepeat', [])
.directive('virtRepeat', function() {
return {
require: ['?ngModel', '^virtualList'],
transclude: 'element',
priority: 1000,
terminal: true,
compile: function(element, attr, transclude) {
return function($scope, $element, $attr, ctrls) {
var virtualList = ctrls[1];
var _this = this;
virtualList.listView.renderViewport = function(high, low, start, end) {
console.log('RENDER VIEWPORT', high, low, start, end);
}
}
}
}
});
})(ionic);