Open leena-bhise opened 8 years ago
I am using angular new router for routing on my angular application and my route configuration is :
angular new router
$router.config([ { path: '/', redirectTo: '/dashboard' }, { path: '/dashboard', component: 'dashboard'}, { path: '/login', component: 'login' } ]);
Here when I access page via "/" then dashboard controller is executing twice even if I change redirectTo with another component (for eg login) then that controller also executes twice.
dashboard
redirectTo
where would be the issue. Please guide me.
Thanks in advance.
I am using
angular new router
for routing on my angular application and my route configuration is :Here when I access page via "/" then
dashboard
controller is executing twice even if I changeredirectTo
with another component (for eg login) then that controller also executes twice.where would be the issue. Please guide me.
Thanks in advance.