Last active
August 29, 2015 14:01
-
-
Save terion-name/a8e5629cc09656f54528 to your computer and use it in GitHub Desktop.
Ember and NProgress
This file contains hidden or 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
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