Created
April 15, 2014 01:33
-
-
Save jibwa/10694880 to your computer and use it in GitHub Desktop.
simple directive to remove the prerenderReady after five seconds
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
# This is required to prerender views for google indexing | |
app.directive 'prerenderReady', ($timeout, $window) -> | |
link: -> | |
$timeout( -> | |
$window.prerenderReady = true | |
, 5000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment