• Randall Leeds's avatar
    Resolve user authorization before view render · ca2083cc
    Randall Leeds authored
    Avoid having to watch the user in route controllers at all by resolving
    it as a prerequisite of the routes, much like the store bootstrap. The
    user may still be ``null`` but it will not be ``undefined``.
    
    For clarity, the $routeChangeStart handler is changed back to a
    function, ``cleanupAnnotations``, that is called explicitly from
    the user watcher in the ``AppController`` right before the route
    reloads.
    ca2083cc
app.coffee 1.67 KB