Guest User

admin-routing.module.ts

a guest
Feb 27th, 2018
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. import { NgModule } from "@angular/core";
  2. import { Routes, RouterModule } from "@angular/router";
  3. import { AdminComponent } from "./admin.component";
  4. import { AdminLandingComponent } from "./admin-landing/admin-landing.component";
  5.  
  6. const adminRoutes: Routes = [
  7. { path: 'admin', component: AdminComponent, children: [
  8. { path: '', component: AdminLandingComponent }
  9. ]}
  10. ];
  11. @NgModule({
  12. imports: [
  13. RouterModule.forChild(adminRoutes)
  14. ],
  15. exports: [RouterModule]
  16. })
  17. export class AdminRoutingModule {}
Advertisement
Add Comment
Please, Sign In to add comment