Skip to content

Instantly share code, notes, and snippets.

@jibwa
Created April 15, 2014 01:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jibwa/10694880 to your computer and use it in GitHub Desktop.
Save jibwa/10694880 to your computer and use it in GitHub Desktop.
simple directive to remove the prerenderReady after five seconds
# 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