Skip to content

Instantly share code, notes, and snippets.

@russiann
Created January 22, 2016 22:22
Show Gist options
  • Save russiann/1dad91bda2f5f83836e5 to your computer and use it in GitHub Desktop.
Save russiann/1dad91bda2f5f83836e5 to your computer and use it in GitHub Desktop.
after:repeat
div(ng:repeat="item in vm.items" after:repeat="vm.doSomething()")
.directive('afterRepeat', function($timeout) {
return function(scope, element, attrs) {
if (scope.$last) {
return $timeout(function() {
return scope.$eval(attrs.afterRepeat);
});
}
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment