Basic pull to refresh shell

This commit is contained in:
Max Lynch
2013-10-16 11:22:01 -05:00
parent 6e8fcb0daf
commit 3ae53811a6
7 changed files with 185 additions and 8 deletions

View File

@ -49,7 +49,10 @@
<body>
<content has-header="true" ng-controller="TestCtrl" class="reveal-animation">
<list is-editing="isEditingItems" animation="my-repeat-animation" delete-icon="icon-minus-circled" reorder-icon="icon-navicon">
<list is-editing="isEditingItems" on-refresh="refreshProjects()" animation="my-repeat-animation" delete-icon="icon-minus-circled" reorder-icon="icon-navicon">
<div class="list-refresher">
<div style="height: 100px; font-size: 30px; text-align: center">REFRESHING</div>
</div>
<list-item ng-repeat="item in items"
buttons="item.buttons"
can-delete="true"
@ -75,6 +78,10 @@
$scope.items.splice($scope.items.indexOf(item), 1);
};
$scope.refreshProjects = function() {
alert('refreshing!');
};
$scope.items = [
{
text: 'Item 1',