Created
January 19, 2015 14:26
-
-
Save tcarlsen/ccc2df585811a8ba2b86 to your computer and use it in GitHub Desktop.
fire function after ngRepeat is done in Angularjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module "onFinishRenderDirective", [] | |
.directive "onFinishRender", ($timeout) -> | |
restrict: "A" | |
link: (scope, element, attr) -> | |
if scope.$last | |
$timeout -> scope.$emit "ngRepeatFinished" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
use then like this: