Skip to content

Instantly share code, notes, and snippets.


Ben Edmunds benedmunds

View GitHub Profile
View gist:10500084
$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
View Result
<li class="gig ng-scope">
<div class="month september-2014">
<div class="info-container">
<div class="info">
<div class="calendar">
<div class="monthtop ng-binding">Apr
<img ng-src="/dist/img/flags/GB.png" src="/dist/img/flags/GB.png">
View Result
<div class="foo bar"></div>
<div class="foo raa"></div>