List items animation and some other shit

This commit is contained in:
Max Lynch
2013-10-10 15:08:31 -05:00
parent 5d165a8310
commit dedc5e9b87
10 changed files with 376 additions and 22 deletions

26
dist/ionic-angular.js vendored
View File

@ -209,7 +209,6 @@ angular.module('ionic.ui.list', ['ionic.service', 'ngAnimate'])
return {
restrict: 'E',
replace: true,
transclude: true,
scope: {
isEditing: '=',
items: '=',
@ -229,8 +228,31 @@ angular.module('ionic.ui.list', ['ionic.service', 'ngAnimate'])
if(attr.animation) {
$element.addClass(attr.animation);
}
}
}
}
})
$element.append(transclude($scope));
.directive('listSimple', function() {
return {
restrict: 'E',
replace: true,
transclude: true,
scope: {
isEditing: '=',
items: '=',
animation: '@',
deleteIcon: '@'
},
template: '<ul class="list" ng-class="{\'list-editing\': isEditing}" ng-transclude>' +
'</ul>',
compile: function(element, attr, transclude) {
return function($scope, $element, $attr) {
var lv = new ionic.views.List({el: $element[0]});
if(attr.animation) {
$element.addClass(attr.animation);
}
}
}
}