angular - Component's html included the last HTML -
i have problem html images below:
error :
i clicked button move page path: /page/:beecow, last html show if '/page/:beecow' have error. last html 'market' in app-routing
i'm using angular version 4.3.5
// here app-routing const approutes: routes = [ { path: '', component: landingpagecomponent, pathmatch: 'full' }, { path: 'page', // navigate here loadchildren: './page/page.module#pagemodule' }, { path: 'market', loadchildren: './market/market.module#marketmodule' }, { path: '**', redirectto: '' } ]; @ngmodule({ imports: [routermodule.forroot(approutes)], exports: [routermodule] }) export class approutingmodule { } // here page-routing const routes: routes = [{ path: '', component: pagecomponent, canactivate: [authguardservice], children: [ { path: 'upload-product', component: productcomponent, pathmatch: 'full', data: { authorities: ['role_store'], pagetitle: 'beecow.store.item.producttitle' }, canactivate: [roleguardservice], candeactivate: [navigationservice] }, { path: ':beecow', // if component have error, html expanded component: manageitemcomponent } ] }]; @ngmodule({ imports: [routermodule.forchild(routes)], exports: [routermodule] }) export class pageroutingmodule { }
Comments
Post a Comment