Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { NgModule } from "@angular/core";
- import { Routes, RouterModule } from "@angular/router";
- import { AdminComponent } from "./admin.component";
- import { AdminLandingComponent } from "./admin-landing/admin-landing.component";
- const adminRoutes: Routes = [
- { path: 'admin', component: AdminComponent, children: [
- { path: '', component: AdminLandingComponent }
- ]}
- ];
- @NgModule({
- imports: [
- RouterModule.forChild(adminRoutes)
- ],
- exports: [RouterModule]
- })
- export class AdminRoutingModule {}
Advertisement
Add Comment
Please, Sign In to add comment