From 27d1f11b964570262cd39e6c84d1b83e4da30bda Mon Sep 17 00:00:00 2001 From: mehmet-erim Date: Tue, 7 Jul 2020 00:05:35 +0300 Subject: [PATCH] refactor: define DynamicLayoutComponent as root component --- .../src/lib/my-project-name-routing.module.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/templates/module/angular/projects/my-project-name/src/lib/my-project-name-routing.module.ts b/templates/module/angular/projects/my-project-name/src/lib/my-project-name-routing.module.ts index e698be1973..75934a9b70 100644 --- a/templates/module/angular/projects/my-project-name/src/lib/my-project-name-routing.module.ts +++ b/templates/module/angular/projects/my-project-name/src/lib/my-project-name-routing.module.ts @@ -7,7 +7,13 @@ const routes: Routes = [ { path: '', pathMatch: 'full', - component: MyProjectNameComponent, + component: DynamicLayoutComponent, + children: [ + { + path: '', + component: MyProjectNameComponent, + }, + ], }, ];