Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DynamicLayoutComponent to the root level as a layout #4422

Closed
mehmet-erim opened this issue Jun 19, 2020 · 0 comments · Fixed by #4423
Closed

Add DynamicLayoutComponent to the root level as a layout #4422

mehmet-erim opened this issue Jun 19, 2020 · 0 comments · Fixed by #4423

Comments

@mehmet-erim
Copy link
Contributor

mehmet-erim commented Jun 19, 2020

The DynamicLayoutComponent should be added to the app-routing.module.ts as shown below:

// all routes should be a child of the DynamicLayoutComponent
const routes: Routes = [
  {
    path: '',
    component: DynamicLayoutComponent, // should be defined at root level
    children: [
      // other routes
    ], 
  },
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant