Skip to content

Instantly share code, notes, and snippets.



Last active Aug 29, 2015
What would you like to do?
$scope.$on('ngRepeatFinished', function(ngRepeatFinishedEvent) {
//grab the classes
var classes = $(this).attr('class').split(/\s+/);
for (var i=0; i<classes.length; i++) {
//only check against the date classes
if (/\w*-\d{4}/.test(classes[i])) {
//show the first matching element
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.