HI

I would go from

app.controller('RouterCtrl', ['$router', RouterCtrl]);

function RouterCtrl($router) {
 $router.config([
  { path: '/', redirectTo: '/page/' + '553e2d15f91e4bd75d000009' }, // 
SHOULD REDIRECT TO A DYNAMIC HOME PAGE
  ...
}

to (which does not work)

app.controller('RouterCtrl', ['$router', 'SharedData', RouterCtrl]);

function RouterCtrl($router, SharedData) {
 SharedData.then(function(service){
 $router.config([
 { path: '/', redirectTo: '/page/' + service.homePage }, // SHOULD REDIRECT 
TO A DYNAMIC HOME PAGE
  ...
}

where SharedData is a promise which return homePage 
= 553e2d15f91e4bd75d000009

Any help would be appreciated

Regards
Greg

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to