i try include class "animated" on index splice, dont understand follow erros..
splice function, but..
function deletes(item, index) { var deferred = alldb.remove({section: $rootscope.$stateparams.section, id: item.id}); deferred.$promise.then(function () { var itemindex = $rootscope.items.indexof(item); $rootscope.selected = []; console.log(itemindex); $("tr:eq(" +itemindex+ ")").addclass('animated fadeoutdown', settimeout( function(){ $rootscope.items.splice(itemindex, 1) $mdtoast.show($mdtoast.simple({position: 'top right'}).content(item.id + ' ....deletados!')) }, 500) ); }); return deferred.$promise; }
Comments
Post a Comment