emberjs / website

Source for emberjs.com
https://emberjs.com
Other
647 stars 1.32k forks source link

LoadingRoute is not documented #1077

Closed ryrych closed 10 years ago

ryrych commented 10 years ago

But it is very helpful when lots of data is loaded from a server. We used it like this:

# route
App.LoadingRoute = Em.Route.extend()
# template (loading bar using CSS3 animations)
.loading-page
  #boxes
    #box_1.box
    #box_2.box
    #box_3.box
    #box_4.box
    #box_5.box
    #box_6.box
    #box_7.box
    #box_8.box
  p= t 'loading'
machty commented 10 years ago

LoadingRoute had inconsistent/unreliable behavior that was a hangover from router.js code, and this behavior has been replaced with loading substates behavior currently on Ember Beta. In a week it'll be released to stable and we'll be releasing proper documentation along with it on the website that explains how LoadingRoute et al work.