bennadel / AngularJS-Routing

An example of how to do deep routing in an AngularJS application when ngView is not enough.
Other
226 stars 111 forks source link

Big thanks #3

Closed matb33 closed 11 years ago

matb33 commented 11 years ago

Ben, thanks for this. I spent hours with vanilla routing, and more hours with ui-router... nothing did the trick. Parent views getting re-rendered when only the child views should have been affected was the crux of the problem, which your implementation solved.

I ended up doing a bit of abstraction but am not yet sure if it was wise -- only time will tell!

A small note: as of Angular 1.2.0rc1, in the $routeChangeSuccess callback, getting the action can be done like so:

var action = $route.current.$$route && $route.current.$$route.action;
bennadel commented 11 years ago

@matb33 Hey man, thanks for the note. Sorry for not responding sooner. I commit a lot to GitHub, but I don't actually know that much about notifications. I only found this one because I was curious what that "blue dot" at the top of the page meant :D I'll know for next time. Cheers!