I think this will work just fine; I think a better way is through the use of a route resolver. Look at the `resolve` in `$routeProvider` http://docs.angularjs.org/api/ng.$routeProvider#when