The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Route Life Cycle

Route Life Cycle

4:24
In this lesson the the route life cycle, John steps through the AngularJS Route life cycle using the routeChangeStart and routeChangeSuccess events. By inspecting the current and previous objects, we can see Angular's awareness of the previous route and controller as well as the current or targeted route and controller. Through the use of the resolve property, the routeChangeSuccess event will be delayed until the promise has been completed.
Watch this lesson now
Avatar
egghead.io

In this lesson the the route life cycle, John steps through the AngularJS Route life cycle using the routeChangeStart and routeChangeSuccess events. By inspecting the current and previous objects, we can see Angular's awareness of the previous route and controller as well as the current or targeted route and controller. Through the use of the resolve property, the routeChangeSuccess event will be delayed until the promise has been completed.

Avatar
Gustavo Saiani

The Angular videos have been pretty tough to replicate, because the sample code, updated to Angular 1.2, doesn't really print anything on the browser.

It might also be helpful if, for the sample code, the html loaded all the dependencies from a CDN to start.

In reply to egghead.io
Avatar
roberto

Indeed. Almost feels like I thought I purchased a new car, but instead i'm learning it's a 2006 model that has a cd changer and No AUX- bluetooth plug-in for my smart-phone. 0_o

Would definitely appreciate a quick note, blog from the authors how to proceed in in their lectures as a noob, when all the code is 2 years old. Especially since it's marketed to learn Angular JS from the ground-up.

In reply to Gustavo Saiani
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?