Hi,
thanks for the reply, I tried it by removing the top level router, but it 
throws me the error *EXCEPTION: Uncaught (in promise): Error: Cannot match 
any routes: 'Home'*

I tried with the below code

const loginRoutes: Routes = [
        { path: '', component: Login },
        { path: 'login', component: Login },
        ...HOME_ROUTER_PROVIDERS
    ];
    export const LOGIN_ROUTER_PROVIDERS: ModuleWithProviders =    
RouterModule.forRoot(loginRoutes);


do let me know if any other changes need to be done?

Regards,

Krishnan


On Thursday, January 26, 2017 at 12:23:57 AM UTC-5, Sander Elias wrote:
>
> Hi,
>
> You are loading your home component twice. Once in your toplevel router, 
> and then again in your home_router. You should remove it out of your 
> toplevel router.
> The details are explained on routers documentation page 
> <https://angular.io/docs/ts/latest/guide/router.html#!%23child-routing-component>
> . 
>
> Regards
> Sander
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" 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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to