Skip to content

Instantly share code, notes, and snippets.

@terion-name
Last active August 29, 2015 14:01
Show Gist options
  • Save terion-name/a8e5629cc09656f54528 to your computer and use it in GitHub Desktop.
Save terion-name/a8e5629cc09656f54528 to your computer and use it in GitHub Desktop.
Ember and NProgress
App.ApplicationRoute = Ember.Route.extend
actions:
loading: ->
NProgress.start()
@router.one('didTransition', ->
setTimeout (-> NProgress.done()), 50
)
true
error: ->
setTimeout (-> NProgress.done()), 50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment