akoenig / angular-deckgrid

A lightweight masonry-like grid for AngularJS.
http://akoenig.github.io/angular-deckgrid
MIT License
1.1k stars 191 forks source link

give index when card select #121

Closed shenghou closed 6 years ago

shenghou commented 6 years ago

i think we should add index when the card been selected, so you can order by what you select ;

`` var index = 0; Descriptor.prototype.$$link = function $$link (scope, elem, attrs, nullController, transclude) { scope.clickCard = function(card){ index +=1; scope.clickMedia(card); card.card.index = index ; }; ...... };

image